Граф коммитов

4289 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot a9d8ce7c07
[watchkit] Update for beta 1 (#4204) 2018-06-11 05:31:52 -07:00
Sebastien Pouliot 2d6ce7459d
Bump to use Xcode 10 beta 1 (#4179)
* Bump to use Xcode 10 beta 1

* Update Versions.plist

* Add a dependency on Xcode 9.4.

* [msbuild] Fix build with Xcode 10 beta 1. (#4182)

Many years ago (in Xcode 7 according to code comment)
Developer/Platforms/iPhoneOS.platform/Developer/usr disappeared, and we coped
by looking at Developer/usr instead (and also the subsequent code to locate
the bin directory was based on the location of the usr directory).

Developer/Platforms/iPhoneOS.platform/Developer/usr reappeared in Xcode 10
beta 1, but it seems useless (for one it doesn't contain a bin directory), so
in order to try to keep things sane don't look for this directory in Xcode 10
and instead go directly for Developer/usr (which is what we've been using as
the usr directory for years anyway).

Fixes this problem when building apps with Xcode 10 beta 1:

      /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(626,3): error : Could not locate SDK bin directory [/Users/rolf/Projects/TestApp/test-app.csproj]

* [runtime] Build 32-bit mac executables using Xcode 9.4.

* [mtouch] Work around broken tvOS headers in Xcode 10 beta 1.

* [mtouch] Work around build problem with Apple's simd headers in Objective-C++ mode.

* Use version-agnostic paths to sdk directories.

* [tests][xtro] Add todo files (from unclassified) and adjust ignore files to avoid errors

* [macos][security] Re-enable SSL[Get|Set]AlpnProtocols. Fixes #4001 (#4022)

* [macos][security] Re-enable SSL[Get}Set]AlpnProtocols. Fixes #4001

This was fixed in macOS 10.13.4

https://github.com/xamarin/xamarin-macios/issues/4001

* [tests][monotouch-tests] Disable a few test cases (one crasher, other failures). Causes to be verified later

* [xharness] Fix permission dialog suppression in Xcode 10.

* [xharness] Ignore 32-bit macOS tests by default.

* [tests] Execute mmp regression tests with Xcode 9.4 since many of them are 32-bit and needs porting to 64-bit.

* [mmptest] Ignore 32-bit XM tests if we don't have a 32-bit-capable Xcode.

* [registrar] Add workaround for broken headers in Xcode 10 beta 1 (radar 40824697).

* [mtouch] Restrict another workaround for an Xcode 10 beta 1 bug to a specific Xcode version to remove it asap.

* [tests] Fix some protocol changes (public or not) find by introspection tests

* [tests][intro] Fix DefaultCtorAllowed failures

* [Intents] Obsolete several Intents classes in watchOS.

Several existing Intents classes have been marked as unavailable in watchOS in
the headers in Xcode 10 beta 1, and corresponding tests are now failing.

So obsolete the managed wrapper types, and fix tests accordingly.

* Fix xtro wrt previous Ietents/intro changes

* [tests] Minor adjustments to mtouch tests to work with Xcode 10.

* [msbuild] Update tests to cope with additional files produced by the Core ML compiler.

* [msbuild] Xcode 10 doesn't support building watchOS 1 apps, so show a clear error message explaining it.

Also update tests accordingly.

* [coreimage] Stub new filters and exclude ?removed? ones from tests

* Update GameplayKit and SpriteKit NSSecureCoding _upgrade_ and fix other non-public cases (in tests)

* [tests] Ignore some GameKit selectors that don't respond anymore (but seems to be available, at least in header files)

* [tests] Fix intro 32bits testing for filters resutls

* [msbuild] Slightly change error message to be better English.
2018-06-08 18:45:24 -07:00
Sebastien Pouliot 847f4c1d8d
[apidiff] Update XML references to produce the API diff for xcode9.4 support (#4160) 2018-05-30 14:12:36 -04:00
Sebastien Pouliot 64fece5f0a
Merge pull request #4026 from spouliot/d15-7-xcode94
Add xcode9.4 support into 15.7
2018-05-29 17:55:31 -04:00
Sebastien Pouliot 39a1f30669 Bump to final Xcode 9.4 release 2018-05-29 15:13:35 -04:00
Chris Hamons eeaeb7e651
Fix default values for touchbar APIs in NSTextViewDelegate. (#3843) (#4071) 2018-05-14 15:04:36 -05:00
Rolf Bjarne Kvinge 408d357468 [mtouch] Take into account the contents of response files when determining whether the cache is valid or not. Fixes #4033. (#4032) (#4051) 2018-05-08 17:27:05 -04:00
Sebastien Pouliot 86f43660e1 Fix XM version so, once merged, newer packages (and version numbers) remain more recent than previous ones 2018-05-04 15:28:41 -04:00
Sebastien Pouliot 145aca30a3 Fix bindings since 15.7 does not use [p]mcs but csc 2018-05-03 19:12:02 -04:00
Sebastien Pouliot 9208e9a0a4 Add xcode9.4 support into 15.7
The PR is not final and cannot be merged until the final Xcode 9.4
release from Apple is available.

Since there's no macOS specific changes (at least up to beta 2) we can
directly merge into the _normal_ milestone branch and avoid having
separate branches to maintain for XI and XM (until 15.8).
2018-05-03 13:55:11 -04:00
Vincent Dondain 25314e51d6 [classkit] Update for Xcode 9.4 beta 2 (#4020) 2018-05-01 22:33:20 -04:00
Vincent Dondain b4d0d73303
[Make.config] Bump for Xcode 9.4 beta 2 (#4017) 2018-05-01 16:43:52 -04:00
Sebastien Pouliot 7e782c1e09
Bump mono to the head of 2017-12, including the workaround for #8403 (#3983)
* Bump mono to the head of 2017-12, including the workaround for #8403

Commit list for mono/mono:

* mono/mono@ea8a24b1bb [2017-12] [mini] Don't verify types if you store to a pointer byref. (#8425)
* mono/mono@a5b924fa68 Merge pull request #8412 from mono/backport-new-boottime-2017-12
* mono/mono@34396522f3 [arm] Fix a regression introduced by: (#8415)
* mono/mono@dd6e11936b [runtime] Don't use clock_gettime on WatchOS and tvOS.
* mono/mono@e81726eb29 [runtime] Don't use clock_gettime in MacOS.
* mono/mono@c7a91c01fa [runtime] Fix mono_msec_boottime () so it compiles on older ios versions, clock_gettime () is only available from ios 10. (#7671)
* mono/mono@c6b39a0614 [mono-time] Replace mono_msec_boottime() with CoreCLR implementation. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=58413
* mono/mono@99af4a9eda [watch] Align cinfo->stack_usage to 16 on watchos. (#8377)
* mono/mono@75be2e6537 [sdks] Match more closely the pre-SDKs configure flags passed to LLVM (#8382)
* mono/mono@9273efd973 [sdks] Fix mktemp parameters (#8325)
* mono/mono@8eb8f7d5e7 [sdks] Fix typo + Fix verbosity of unzip-android-archive.sh (#8245)
* mono/mono@c6a8c0e38a [System.Net.Http] Use '*' as the host instead of '+' in the tests. Fixes xamarin/maccore#673.
* mono/mono@c2e1021ed0 [2017-12][TermInfo] support new file format terminfo2 introduced with ncurses6.1 (#8203)
* mono/mono@29bbcfb022 [sdks] Add ANDROID_BUILD_TOOLS_DIR to differentiate it from ANDROID_BUILD_TOOLS_VERSION (#8193)
* mono/mono@2cc6bede97 [sdks] Fix typo (#8189)
* mono/mono@16cad3ccd4 [sdks] Add support for building llvm unless the USE_PREBUILT_LLVM Make.config var is set. (#8017) (#8151)
* mono/mono@8605da46f5 [System] Don't use http://www.mono-project.com for test (#8147)
* mono/mono@d194b8fd4d [2017-12] [Facades] Add System.Drawing.Common on mobile only (#8130)
* mono/mono@a749680783 [sdks] Fix arguments passed to llvm on Linux (#8108)

Diff: b4e428d7c4...ea8a24b1bb

* [mtouch][mmp] Add new System.Drawing.Common facade from the mono bump
2018-04-25 13:21:15 -04:00
Brad Umbaugh 334473b50b Removed an unnecessary period (#3967) 2018-04-20 16:20:04 -04:00
Sebastien Pouliot 6c4bbf3f32
[apidiff] Update mono-api-html and Makefile to output markdown for API diffs (#3956) 2018-04-19 15:23:40 -04:00
Sebastien Pouliot b1144d408e
[apidiff] Update mono-api-html and Makefile to output markdown for API diffs (#3954) 2018-04-18 15:45:36 -04:00
Rolf Bjarne Kvinge f4933226fd [mtouch] watchOS extensions are top-level containers. Fixes issue #3930. (#3934) (#3937)
watchOS extensions are top-level containers in our build (because we ignore
watchOS apps entirely in mtouch), so treat them as such when computing the
protocol member map.

Fixes issue https://github.com/xamarin/xamarin-macios/issues/3930.
2018-04-17 21:15:33 -04:00
Chris Hamons 3c5a4989a8 [d15-7][msbuild] Fix AOT options from IDE (#3916)
* Add failing test for tag issue

* [msbuild] Update msbuild to use correct XM AOT variables

- The IDE saves out AOTMode and HybridAOT but msbuild was older names
2018-04-17 21:15:12 -04:00
Sebastien Pouliot c80edcea02
Synchronize back docs moved to https://docs.microsoft.com (#3771) 2018-04-17 09:02:42 -04:00
Sebastien Pouliot 4658e217d7
Cherry-pick the api-diff changes to produce markdown on the bots (#3947)
* [tools][api-diff] Add a tool to merge several .md files into a single one (#3814)

This depends on an updated mono-api-html tool (not yet available). This
PR will test the creation (empty headers) and storage of the files on bots.

Reference https://github.com/xamarin/xamarin-macios/issues/3787

* Bump macios-binaries to get latest mono-api-html.exe to produce markdown
2018-04-17 08:54:29 -04:00
Jeffrey Stedfast 6f3b277df6 [xcode9.4][msbuild] Catch ArgumentException if IBToolTask fails to load plist o… (#3940)
Fixes the stack trace spew in https://devdiv.visualstudio.com/DevDiv/_workitems/edit/595179
2018-04-13 16:15:36 -04:00
Sebastien Pouliot 565244e0f6
Fix mtouch tests as the last mono bump (PR3890) included a new facade assembly (#3894) 2018-04-09 08:17:16 -04:00
Sebastien Pouliot 41f2ce7cbd
Bump mono to head of 2017-12 (#3890)
Commit list for mono/mono:

* mono/mono@b4e428d7c4 [sdks] Use wget in place of curl, it's installed by default on Linux (#8060)
* mono/mono@1cb70ef771 [SDKS] fix Linux (and possibly other OSes) build for Android (#8045)
* mono/mono@00f930c13d [SDKS] Fix Android SDK build on Linux (#8022)
* mono/mono@911b32aef0 [runtime] Fix --disable-btls. (#8001)
* mono/mono@82306753f9 [sdks] Fix MXE_PREFIX for XA (#8011)
* mono/mono@edabe88417 [sdb] Add reference counting for single step requests, they can be accessed concurrently by the single step processing code and the event request clearing code. Fixes #7137. (#7973)
* mono/mono@12304ec458 [2017-12] [Facades] Add System.Memory facade to mobile profiles (#7969)
* mono/mono@9340ebefcd [2017-12] Disable building btls/ and support/ on the bcl build, they are not needed. (#7959)
* mono/mono@32031273ec [2017-12] [sdks] Add provisioning for Android SDK and NDK (#7980)
* mono/mono@083c130d4a [System] Disable SocketTest.AcceptBlockingStatus (#7976)
* mono/mono@b149c23832 [ppc] use ucontext_t
* mono/mono@8aa3f6182f [runtime] Add regression test for nested famility visibility.
* mono/mono@db135e42db [runtime] Fix class visibility check for protected nested classes. Fixes #7657.
* mono/mono@de7bff2994 [sdks] Fix LLVM build for XA (#7918)
* mono/mono@28f285b972 [2017-12] [sdks] Fix LLVM build on Linux for XA + Fix MXE usage on non-Darwin platforms (#7911)
* mono/mono@9b8ba28bac Bump API snapshot submodule
* mono/mono@3c76d261e1 Hide new API which didn't make it to stable on time for dev15.7
* mono/mono@b932a792d8 Bump corefx
* mono/mono@34c3d019ed [sdks] Fix usage of MXE for XA (#7899)
* mono/mono@6c4c039c9b [jit] Add signature checking for CALLI. (#7881)
* mono/mono@4de0fb710b [2017-12] [sdks] Pass LLVM_SRC from XA to use `xamarin-android/external/llvm` + Pass IGNORE_PACKAGE_MXE from XA + Only checkout specific MXE and LLVM commit when cloning (#7896)
* mono/mono@c45f358856 [sdks] Pass MXE_SRC from XA to use `xamarin-android/external/mxe` (#7889)

Diff: bf27e25446...b4e428d7c4
2018-04-06 18:57:06 -04:00
Vincent Dondain aa27dba548 [msbuild] Skip reference assemblies passed to mtouch (#3791) (#3889)
- Fixes issue #3199: Could not AOT the assembly System.Runtime.CompilerServices.Unsafe.dll (MT3001)
  (https://github.com/xamarin/xamarin-macios/issues/3199)
- Test case: https://www.dropbox.com/s/kxt3isgzn74nq35/Issue3199.zip?dl=0

### Problem

Given a Nuget Package added via the "package reference" mechanism and the said package having netstandard 'lib' **and** 'ref' folders;
MTouch was getting reference assemblies and was trying to AOT them. This resulted in an error as those assemblies are only facades.

### Solution

'ResolveNuGetPackageAssets' computes the NuGet packages using their json asset file, adds the full assemblies to 'ReferenceCopyLocalPaths' and outputs the resolved references via '_ReferencesFromNuGetPackages'.

This is exactly what "Microsoft.NuGet.Build.Tasks"'s 'ResolveNuGetPackageAssets' target does.
2018-04-06 17:06:27 -04:00
Rolf Bjarne Kvinge b1c5ebf326
[generator] Register models with unique names to not match platform types. Fixes #3875. (#3879) (#3888)
* Move Registrar.SanitizeName to StringUtils.SanitizeObjectiveCName.

* [generator] Register models with unique names to not match platform types. Fixes #3875.

* [NSObject] Don't compare against a non-existent protocol.

* [generator] Make it possible to register models like before if the binding developer wishes it.

* [src] Make sure to not declare ObjC classes Apple already defines.

Fixes these warnings at startup:

    Class DOMNodeFilter is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944a788) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9958). One of the two will be used. Which one is undefined.
    Class WebOpenPanelResultListener is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944e4c8) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9a98). One of the two will be used. Which one is undefined.
    Class WebPolicyDecisionListener is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy (0x7fffa944e838) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8a9ae8). One of the two will be used. Which one is undefined.
    Class MTLCaptureScope is implemented in both /System/Library/Frameworks/Metal.framework/Versions/A/Metal (0x7fffa806f1d0) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8aa858). One of the two will be used. Which one is undefined.
    Class JSExport is implemented in both /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore (0x7fffa7eb4f60) and /Users/builder/data/lanes/6035/0ca02336/source/xamarin-macios/tests/xharness/tmp-test-dir/dont link-mac-unified/bin/x86/Debug-unified/dont link.app/Contents/MacOS/dont link (0x10d8aaa38). One of the two will be used. Which one is undefined.
2018-04-06 19:58:20 +02:00
Alex Soto 701d28dde9
Merge pull request #3884 from dalexsoto/bcfix94
[BusinessChat] Make mtouch and mmp aware of BusinessChat framework (#3882) - Backport
2018-04-05 18:38:40 -05:00
Alex Soto 6a2614a68b [BusinessChat] Make mtouch and mmp aware of BusinessChat framework (#3882) 2018-04-05 18:33:02 -05:00
Alex Soto db6cfeca20
[BusinessChat] Make mtouch and mmp aware of BusinessChat framework (#3882) 2018-04-05 15:38:28 -05:00
Alex Soto 347160cf51
[ClassKit] Add Xcode 9.4 Beta 1 Bindings (#3853)
* [ClassKit] Add Xcode 9.4 Beta 1 Bindings

* ClassKit moved to v11.4 or we'd link against a private frmework in 11.3

* Turn CLSPredicateKeyPath into a static class

CLSPredicateKeyPath does not make much sense as an enum, we'll use
a static class instead so we do not have to call GetConstant() and
use the NSString directly.

Sample code using CLSPredicateKeyPath:

```csharp
var store = CLSDataStore.Shared;
var predicate = NSPredicate.FromFormat ("%K = %@", CLSPredicateKeyPath.Parent, store.MainAppContext);
var ctxs = await store.FindContextsMatchingAsync (predicate);
foreach (var ctx in ctxs) {
	Console.WriteLine (ctx.Title);
}
```

* [tests] Exclude WeakTopic incorrect check, bound as smart enum
2018-04-05 10:20:05 -05:00
Rolf Bjarne Kvinge 15e3bf39ce
[d15-7] [jenkins] Create comment file for PR builds. (#3799) (#3859)
* [jenkins] Create comment file for PR builds. (#3799)

* [jenkins] Create comment file for PR builds.

* [tools] Create stamp file after doing things that might modify files we care about. (#3864)

We have consistency checks to verify that no unexpected files are modified
done when comparing APIs in for a pull request.

Unfortunately the check didn't take into account that checking out the
revision to do the API check against might modify some of the files in the
consistency check itself, thus triggering the consistency check.

Fix this by only verify timestamps of files modified after checkout out the
revision, which is the only thing we care about anyway.

For examples see PR #3855 or PR #3850.

* [jenkins] Don't succeed if something went wrong when creating API or generator diff. (#3865)

Ref: https://github.com/xamarin/xamarin-macios/pull/3855#issuecomment-378441993
2018-04-05 07:37:08 +02:00
Vincent Dondain 3955be3f12 [arkit] Add missing ARHitTestResultType binding (#3872) (#3873)
- Fixes #3870: Missing ARHitTestResultType.EstimatedVerticalPlane binding for ARKit 1.5
(https://github.com/xamarin/xamarin-macios/issues/3870)
2018-04-04 20:22:01 -04:00
Manuel de la Pena 1110d8fcb3
[Foundation] Ensure we do raise 401 on NTLM when no creds are present. (#3866)
* [Foundation] Ensure we do raise 401 on NTLM when no creds are present. Fixes #3742

The code was not executing the completionHandler in those case were the
user did not provide the creds. We should try to get the creds and use
them or call the cb with the proposed creds.
2018-04-04 16:31:04 +02:00
Rolf Bjarne Kvinge bddd5f924a
[jenkins] Create comment file for PR builds. (#3799) (#3858)
* [jenkins] Create comment file for PR builds.
2018-04-04 15:40:34 +02:00
Sebastien Pouliot aef999f3ed
[apidiff] Update XML references (#3851)
* XI 11.9 (stable) comes from `xcode9.3`
* XM 4.2.1 (stable) comes from `d15-6`
2018-04-03 16:58:04 -04:00
Sebastien Pouliot 966a636490
Initial bump/setup for Xcode 9.4 beta 1 (#3846) 2018-04-03 08:16:51 -04:00
Rolf Bjarne Kvinge 4f9140dcb1 Build on Wrench 2018-04-03 13:07:32 +02:00
Sebastien Pouliot dd39753bc6
[mtouch] Use full path to mono-symbolicate instead of UseShellExecute (#3825) (#3834)
Fix https://github.com/xamarin/xamarin-macios/issues/3653 differently as
`UseShellExecute` cannot be used when redirecting output so the original
fix [1] caused an exception which affected it from both macOS and windows
(thru XMA) instead of being an issue only with the later.

It's not clear how the original [1] fix was validated successfully, it's
possible than an older version of mono did not throw (since that
limitation seems windows specific).

[1] https://github.com/xamarin/xamarin-macios/pull/3781
2018-04-02 10:06:56 -04:00
Vincent Dondain 77ac25f3b0
Merge pull request #3835 from VincentDondain/d15-7-merge-xcode9.3
Merge xcode 9.3 into d15-7
2018-03-30 19:42:26 -04:00
Vincent Dondain 260da1b5b4 [introspection] Fix ApiAvailabilityTest macOS max version 2018-03-30 15:59:59 -04:00
Vincent Dondain 94af4c6713 [xtro] Fix xcode9.3 merge issues 2018-03-30 12:26:58 -04:00
Vincent Dondain c83238c994 [apidiff] Update XML references to xcode9.3 branch
- Fixes merge issue.
2018-03-30 11:37:57 -04:00
Vincent Dondain e90c86d2e4 [arkit] Add missing ImageIO using 2018-03-29 23:40:29 -04:00
Alex Soto dc03a42cd3
Remove XamCore. and a couple of nint/nuint enums 2018-03-29 19:46:17 -06:00
Alex Soto 0b2e65599a
Remove diff noise from merge 2018-03-29 18:27:04 -06:00
Vincent Dondain 9eb48678a3 Bump maccore for d15-7 (xcode9.3 merge) 2018-03-29 19:39:03 -04:00
Vincent Dondain 7ece2f6db1 Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:53 -04:00
Vincent Dondain d34f1fbbd7 Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:01 -04:00
Sebastien Pouliot f62de4722b
Bump Xcode 9.3 to the final/released version (#3833)
* [tests] Tweak tests as NKIssue/NKAssetDownload now respond to NS[Secure]Coding without any mention in header files
2018-03-29 17:58:55 -04:00
Sebastien Pouliot eb1d787574
Bump mono to head of 2017-12 (#3821)
Commit list for mono/mono:

* mono/mono@bf27e25446 Remove suspicious mono_gchandle_free
* mono/mono@4e276971c0 Fix the ios sdk build. (#7823)
* mono/mono@1075824929 Fix Android build for toolchain (#7819)
* mono/mono@2dbce94d6f Disable the interpreter on ios device builds. (#7796)

Diff: 1f09e9af88...bf27e25446
2018-03-27 21:31:31 -04:00
Sebastien Pouliot bc5df7c4ed
Merge pull request #3816 from spouliot/xcode93-merge-sr3
Merge d15-6 SR3 into xcode9.3
2018-03-26 17:48:22 -04:00