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

9343 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 2e52dfdb3b [tools] Unify information about CoreNFC in the Frameworks class, and fix selecting whether a framework should be linked weakly or not in dotnet-linker.
This fixes a startup crash in the simulator with Xcode 12:

    Library not loaded: /usr/lib/libnfshared.dylib
      Referenced from: /Applications/Xcode_12.0.0-GMb.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreNFC.framework/CoreNFC
      Reason: no suitable image found.  Did find:
    	/usr/lib/libnfshared.dylib: mach-o, but not built for platform iOS-sim

Ref: https://stackoverflow.com/q/63915728/183422
2020-09-25 13:07:42 +02:00
Manuel de la Pena 022f5d331c [DotNet] Ignore those tests that require Mac OS X if not enabled. 2020-09-24 17:46:22 -04:00
Manuel de la Pena c962651df7 [Localizations] Update Errors.cs with the new error. 2020-09-24 13:35:14 -04:00
Manuel de la Pena 34fc106bad [xtro] Fix osome ignores. 2020-09-24 11:56:12 -04:00
Manuel de la Pena 591c28d882 [MSbuild] Remove duplicated target. 2020-09-24 11:36:25 -04:00
Manuel de la Pena a1cbd726c9 [ApiDiff] Bump api diff ref to Xcode 12. 2020-09-24 11:31:56 -04:00
Manuel de la Pena b6b825e3d1 Fix wrong merge in tests. 2020-09-24 11:30:52 -04:00
Manuel de la Pena 03b583db62 [Xamarin.MacDev][macios-binaries] Bump to pick changes from xcode12. 2020-09-24 10:47:37 -04:00
Manuel de la Pena dcb0c93ab0 [Xcode12] Bring xcode 12 changes into main. 2020-09-23 16:05:22 -04:00
Manuel de la Pena bc1ffddd1b
[xcode12] Merge xcode12 into d16-8 2020-09-22 18:51:57 -04:00
Manuel de la Pena 3e4b4fd19e [Msbuild] Fix wrong merge that borke extensions. 2020-09-22 16:23:17 -04:00
Connor Adsit 746e26f6ac
Use provisionator built-ins for custom functions (#9671) 2020-09-22 14:24:02 -04:00
Manuel de la Pena d2677b36fb [Tests] Add better ignore using the configuration class. 2020-09-22 11:59:09 -04:00
Rolf Bjarne Kvinge 7756d957f9
[dotnet] Tell the linker about any xml descriptors we might have. (#9676)
Also add a linker descriptor to the monotouch-test/.NET project file to
preserve the parts of nunit.framework.dll that aren't linker safe.

This fixes an unhandled exception that causes a crash during the
monotouch-test test run when the linker is enabled:

    Unhandled Exception:
    System.NullReferenceException: Object reference not set to an instance of an object

    Thread 11 Crashed:: tid_15403  Dispatch queue: com.apple.root.default-qos
    0   libsystem_kernel.dylib        	0x00007fff5220c33a __pthread_kill + 10
    1   libsystem_pthread.dylib       	0x00007fff522b6e60 pthread_kill + 430
    2   libsystem_c.dylib             	0x00007fff5219bb7c abort + 120
    3   libxamarin-debug.dylib        	0x000000010c93979f xamarin_unhandled_exception_handler + 47
    4   libmonosgen-2.0.dylib         	0x000000010cc04980 mono_invoke_unhandled_exception_hook + 131
    5   libmonosgen-2.0.dylib         	0x000000010cb40166 mono_handle_exception_internal + 5915
    6   libmonosgen-2.0.dylib         	0x000000010cb3ea47 mono_handle_exception + 11
    7   libmonosgen-2.0.dylib         	0x000000010cb8ea06 mono_amd64_throw_exception + 158
    8   ???                           	0x000000010d4125b0 0 + 4517340592
    9   libxamarin-debug.dylib        	0x000000010c9394fb xamarin_process_managed_exception + 379 (runtime.m:2361)
    10  libxamarin-debug.dylib        	0x000000010c939377 xamarin_process_managed_exception_gchandle + 55 (runtime.m:1144)
    11  libxamarin-debug.dylib        	0x000000010c939333 xamarin_ftnptr_exception_handler + 19 (runtime.m:1133)
    12  libmonosgen-2.0.dylib         	0x000000010cb3feeb mono_handle_exception_internal + 5280
    13  libmonosgen-2.0.dylib         	0x000000010cb3ea47 mono_handle_exception + 11
    14  libmonosgen-2.0.dylib         	0x000000010cb8f2dd handle_signal_exception + 67
    15  ???                           	0x000070000fd730d8 0 + 123145568071896
    16  ???                           	0x000000011a3ab99b 0 + 4735023515
    17  ???                           	0x000000011a3aa643 0 + 4735018563
    18  libdispatch.dylib             	0x00007fff52090a0f _dispatch_queue_override_invoke + 1071
    19  libdispatch.dylib             	0x00007fff5209dcc5 _dispatch_root_queue_drain + 350
    20  libdispatch.dylib             	0x00007fff5209e46a _dispatch_worker_thread2 + 102
    21  libsystem_pthread.dylib       	0x00007fff522b39f7 _pthread_wqthread + 220
    22  libsystem_pthread.dylib       	0x00007fff522b2b77 start_wqthread + 15
2020-09-22 09:15:33 +02:00
Manuel de la Pena 61c326dcd7 [ARKit] Fix breaking changed. 2020-09-21 23:43:06 -04:00
Manuel de la Pena 26d108b30a [Intro] Fix availabilty test with watchOS 7.0 2020-09-21 21:26:42 -04:00
Manuel de la Pena edd185fa89 [Cecil] Fix tests check to ignore. 2020-09-21 18:14:04 -04:00
Manuel de la Pena e7d2b3c041 [Tests] Ignore those test that expect Xamarin.Mac to be present.
Ignore all the tests until
https://github.com/xamarin/xamarin-macios/issues/9680 is fixed.
2020-09-21 18:09:20 -04:00
Manuel de la Pena 47d93cd830 [MTouch] Fix broken compilation of extensions due to a bad merge.
libmain in watch extensions can be null. This was inside an if statement
and got removed during the merge.
2020-09-21 17:58:01 -04:00
Manuel de la Pena 97290ae562 Bump version to be even and leave us space for a possible xcode12.1 2020-09-21 12:25:56 -04:00
Manuel de la Pena 35fd2d8ae8 Merge branch 'd16-8-xcode12' of github.com:xamarin/xamarin-macios into d16-8-xcode12 2020-09-21 12:25:01 -04:00
Rolf Bjarne Kvinge 0e56df74a4
[tools] Simplify code a little bit by making DerivedLinkContext.StaticRegistrar a fetch property instead of a push property (#9677) 2020-09-21 17:54:23 +02:00
Rolf Bjarne Kvinge 3c89b80b3b
[dotnet-linker] Set the dynamic registration mode at runtime. (#9675)
This way we know at runtime what's available and what's not, which means that
the runtime won't try to register assemblies when the dynamic registrar has
been linked away.

Fixes this startup crash in monotouch-test when all optimizations have been enabled:

    Unhandled Exception:
    ObjCRuntime.RuntimeException: The runtime function register_assembly has been linked away.
2020-09-21 17:54:04 +02:00
Rolf Bjarne Kvinge 1a560f454c Bump maccore.
New commits in xamarin/maccore:

* xamarin/maccore@390a280aaf [mlaunch] Exclude more of the Makefile when the mac build is disabled. (#2319)

Diff: c61de641c3..390a280aaf
2020-09-21 16:54:10 +02:00
Rolf Bjarne Kvinge a413b57af3 [msbuild] Skip the .NET/Mac build if INCLUDE_MAC is not enabled. 2020-09-21 16:53:40 +02:00
Rolf Bjarne Kvinge 39e3184f02
[src] Build the .NET version of our product assemblies using a .NET 5 BCL. (#9637)
* [src] Build the .NET version of our product assemblies using a .NET 5 BCL.

We're not shipping the .NET product assemblies in any stable release, so we
can use a preview version of the .NET 5 BCL.

Also:

* Add all the nuget feeds we need to the top-level NuGet.config, even for .NET
  5/6, there shouldn't be any conflicts with stable feeds since we use exact
  version numbers.

* Generate a top-level global5.json which is copied to every directory that
  needs a .NET 5 global.json (overriding the .NET 3.1 global.json in the root
  directory).

* Use the expected dotnet binary during our local build.

* [tests] Fix the bgen tests to use .NET 5.

* [xharness] Set the current directory to the project directory when running .NET tests.

This way we end up using the dotnet version that's configured in global.json for the tests.
2020-09-21 13:22:44 +02:00
Rolf Bjarne Kvinge 569b484ba7
[msbuild/dotnet] Execute bgen using dotnet from the MSBuild tasks when in .NET mode. (#9662) 2020-09-21 08:25:27 +02:00
monojenkins ccc8f89d53 [d16-8] [SBApplication][Bug] SBApplication.FromBundleIdentifier<T> should return null when bundle ID is unknown (#9668)
* SB updates + tests

Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-09-18 18:19:23 -04:00
Manuel de la Pena 10d363faf5 Merge branch 'd16-8' into d16-8-xcode12 2020-09-18 18:04:32 -04:00
Manuel de la Pena eb9b690fe0 Merge xcode12 into d16-8. 2020-09-18 17:51:52 -04:00
Manuel de la Pena e72ef18beb
[Mono] Bump mono to match xamarin-android on be2226b (#9663)
Commits:

  * mono/mono@be2226b5a1: Revert "[crashing] Improve crash chaining (#19973)"
  * mono/mono@cdeef84f3c: Added hard limit to sub-make jobs. Fixes #19784 (#20389)
  * mono/mono@9b9e4ba6e8: WiX cannot package UNIX symlinks; force Cygwin to use Windows symlinks (#20374)
  * mono/mono@7507fb2859: [2020-02] Issue18826 fix (#20358)
  * mono/mono@e368cf51d8: Bump external/llvm-project to 2ca761dc8b83a75ad950f468fb68e764e61d9cfa (#20365)
  * mono/mono@abfd341464: [Android] Enable access to up-to-date tzdata on Android 10+ (#20350)
  * mono/mono@32c0b1aaf9: Support overriding SDK_DIR/NDK_DIR in sdks/android/Makefile
  * mono/mono@620cf53820: [2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin. (#20297)
  * mono/mono@41494af55d: Bump corefx to disable DateTime test
  * mono/mono@66e2b84002: [aot] Fix an assert which is hit for generic instances with a lot of arguments. (#20239)
  * mono/mono@d3daacdaa8: Bump msbuild to latest commit
  * mono/mono@e59c1cd70f: Fix Cairo issue on macOS Big Sur (#20154)
  * mono/mono@648655b86d: [aot] Avoid a crash in generic sharing for invalid generic instances. (#20158)
  * mono/mono@ec71e8a7ae: [2020-02] Reapply "Emit DWARF debug_abbrev offset for compile units as a label instead of 0" (#20046)
  * mono/mono@20bb4f9a6d: [mono][mini] Do a non-virtual call for bound delegates (#20039)
  * mono/mono@9ca6fa646a: [merp] Remove dead code (#20043)
  * mono/mono@2ff424be29: [crashing] Improve crash chaining (#20018)

Full diff: 83105ba224...be2226b5a1
Related android PR: https://github.com/xamarin/xamarin-android/pull/5128
2020-09-18 15:42:10 -04:00
monojenkins b51201ca91
[d16-8] [SBApplication][Bug] SBApplication.FromBundleIdentifier<T> should return null when bundle ID is unknown (#9668)
* SB updates + tests

Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-09-18 15:29:54 -04:00
Rolf Bjarne Kvinge 79068f7038
Bump to .NET 5.0.100-rc.1.20426.3. (#9666)
* Bump to .NET 5.0.100-rc.1.20426.3.

* [dotnet] SupportedTargetPlatform is now SdkSupportedTargetPlatform.

It was renamed in .NET: 4c6c7338fb
2020-09-18 17:40:39 +02:00
Whitney Schmidt f8eca9fb53
[SBApplication][Bug] SBApplication.FromBundleIdentifier<T> should return null when bundle ID is unknown (#9620)
* update SB bindings, add unit tests
2020-09-18 11:18:26 -04:00
Rolf Bjarne Kvinge 1463967d00
[xharness] Skip the 'dont link / AssemblyBuildTarget: SDK framework (release)' variation by default for tvOS. Fixes #xamarin/maccore@2282. (#9659)
This test variation ends up being too big (1.5 GB), so it doesn't install
properly and the app crashes at startup.

So just skip it.

Fixes https://github.com/xamarin/maccore/issues/2282.
2020-09-18 09:08:32 +02:00
Rolf Bjarne Kvinge 3461d8186f
[monotouch-test] Don't assert any specific value for the ReusedConnection value in UrlSessionTaskTransactionMetricsTest. Fixes #xamarin/maccore@2281. (#9660)
Fixes https://github.com/xamarin/maccore/issues/2281.
2020-09-18 09:08:16 +02:00
Rolf Bjarne Kvinge d53a2336ad
[monotouch-test] Rework CBCentralManagerTest to handle not having permissions. (#9661)
1. Assert that we got permission to CoreBluetooth before doing anything. This
   makes it so that if permission has been denied, or if we're running on the
   bots and permission has not been granted, these tests won't run. It does
   not affect local test runs where permissions haven't been granted nor
   denied.

2. Rework the code to wait for CoreBluetooth to power on in the SetUp method.
   Mark the test as inconclusive if CoreBluetooth never powers on (this
   happens if nobody answers the bluetooth permission dialog, quite typical
   when running tests locally).

Fixes these tests when running locally on a tvOS device:

    MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest
        [FAIL] Constructors
        [FAIL] ScanForPeripherals
2020-09-18 09:07:31 +02:00
monojenkins 15b87ca140
[Mono] Bump mono to match xamarin-android on be2226b (#9664)
Commits:

  * mono/mono@be2226b5a1: Revert "[crashing] Improve crash chaining (#19973)"
  * mono/mono@cdeef84f3c: Added hard limit to sub-make jobs. Fixes #19784 (#20389)
  * mono/mono@9b9e4ba6e8: WiX cannot package UNIX symlinks; force Cygwin to use Windows symlinks (#20374)
  * mono/mono@7507fb2859: [2020-02] Issue18826 fix (#20358)
  * mono/mono@e368cf51d8: Bump external/llvm-project to 2ca761dc8b83a75ad950f468fb68e764e61d9cfa (#20365)
  * mono/mono@abfd341464: [Android] Enable access to up-to-date tzdata on Android 10+ (#20350)
  * mono/mono@32c0b1aaf9: Support overriding SDK_DIR/NDK_DIR in sdks/android/Makefile
  * mono/mono@620cf53820: [2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin. (#20297)
  * mono/mono@41494af55d: Bump corefx to disable DateTime test
  * mono/mono@66e2b84002: [aot] Fix an assert which is hit for generic instances with a lot of arguments. (#20239)
  * mono/mono@d3daacdaa8: Bump msbuild to latest commit
  * mono/mono@e59c1cd70f: Fix Cairo issue on macOS Big Sur (#20154)
  * mono/mono@648655b86d: [aot] Avoid a crash in generic sharing for invalid generic instances. (#20158)
  * mono/mono@ec71e8a7ae: [2020-02] Reapply "Emit DWARF debug_abbrev offset for compile units as a label instead of 0" (#20046)
  * mono/mono@20bb4f9a6d: [mono][mini] Do a non-virtual call for bound delegates (#20039)
  * mono/mono@9ca6fa646a: [merp] Remove dead code (#20043)
  * mono/mono@2ff424be29: [crashing] Improve crash chaining (#20018)

Full diff: 83105ba224...be2226b5a1
Related android PR: https://github.com/xamarin/xamarin-android/pull/5128

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-09-17 20:53:25 -04:00
Manuel de la Pena 4028e53d98
[Cecil] Try to fix tests by stating the version in the console runner. (#9655)
Try to fix the issue by stating the version of the runner. This change
will not be needed when we merge with main.

fixes https://github.com/xamarin/maccore/issues/2315
2020-09-17 09:03:20 -04:00
Manuel de la Pena 615932d21e
[Tests]Fixed broken tests.sln. (#9656) 2020-09-17 08:01:00 -04:00
Rolf Bjarne Kvinge 2071a13aa4
[mtouch] Refactor how we detect and avoid broken frameworks when building for the simulator. (#9647)
* Use the existing information we have in the Frameworks class to determine
  whether a particular framework works in the simulator or not.
* Show a warning (MX5223) when we run into such a framework, but only if
  the linker is enabled (otherwise we'll often get warnings for API the developer
  doesn't use).
2020-09-17 13:31:29 +02:00
Aaron Bockover 41ba8c7f42
CGRect, CGPoint, CGSize: add tuple deconstruction methods (#9641)
New APIs:

  CGPoint:
    public void Deconstruct(
      out nfloat x,
      out nfloat y)

  CGSize:
    public void Deconstruct(
      out nfloat width,
      out nfloat height)

  CGRect:
    public void Deconstruct(
      out nfloat x,
      out nfloat y,
      out nfloat width,
      out nfloat height)

    public void Deconstruct(
      out CGPoint location,
      out CGSize size)

Usage:

  var (location, size) = View.Frame;
  var (x, y, width, height) = View.Frame;
  var (x, y) = View.Frame.Location;
  var (width, height) = View.Frame.Size;
2020-09-17 10:41:13 +02:00
Manuel de la Pena 3e3111d44b
[Metal] Add missing GC.KeeAlive. (#9653)
Do it after the review comments on https://github.com/xamarin/xamarin-macios/pull/9651
2020-09-16 17:37:29 -04:00
Rolf Bjarne Kvinge 7ec3751a10
Bump Xamarin.iOS to 14.0. (#9646)
* Bump Xamarin.iOS to 14.0.

* Don't verify that the commit distances for Xamarin.iOS and Xamarin.Mac match unless we're building both of them.
2020-09-16 11:02:44 -04:00
monojenkins c8e056166b
[jenkins] Don't try to upload any packaged Xamarin.Mac tests if there aren't any or the failed to compile. (#9645)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-09-16 10:25:59 -04:00
Alex Soto bfc98f8059
[xcode12] Initial bump for Xcode 12 GM (#9644)
* [xcode12] Initial bump for Xcode 12 GM

* [tests][intro] We cannot load CoreNFC framework on iOS simulator anymore

* [tests][xtro] New Metal API are not abstract (before XAMCORE_4_0)

* [tests][intro] Fix crash when CSLocalizedString 'description' selector is called

* [tests][xtro] Add support for excluding platforms

Based on `Make.config` variables `INCLUDE_[IOS|TVOS|WATCH|MAC]`

This required moving some entries (common -> macOS) to keep the
sanitizer happy.

* [xtro] Ignore Intents watchOS differences since they will likely match iOS in the future

* Update to use Xcode 12 GMb instead of the old GM

* [tests][xtro] Remove OSLog for iOS and tvOS (changed in GM)

* [tests][msbuild] Disable FrameworkListTest based on the active/disabled platforms

* [tests][msbuild] Track new directory/file inside CoreML projects

* [mlaunch] Bump maccore and disable mlaunch if mac build is disabled

New commits in xamarin/maccore:

* xamarin/maccore@ba332d4d07 Disable mlaunch if Mac is not built (#2314)

Diff: 87a96d21c9..ba332d4d07

Co-authored-by: Sebastien Pouliot <sebastien.pouliot@microsoft.com>
2020-09-16 11:41:44 +02:00
Rolf Bjarne Kvinge 2c3634dbcc
[msbuild] Parse the --xml extra bundler argument in ParseBundlerArgumentsTask. (#9639)
Also add some tests.
2020-09-16 09:42:21 +02:00
Rolf Bjarne Kvinge a0797eb822
[jenkins] Fix version logic with macOS 11.0. (#9635)
Fix version logic with macOS 11.0 so that we don't compute all versions by
doing a range computation on the minor version only.

This makes it so that we run on older macOS bots again.

There are also a few other fixes for macOS 11.0.
2020-09-16 09:41:38 +02:00
monojenkins cd891d43ab
[xcode12] [Network] Add nullability support. (#9643)
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-09-15 16:58:30 -04:00
monojenkins 5c06bddc93
[d16-8] [Bug] AVAudioSourceNodeRenderHandler delegate is incorrectly bound (#9624)
Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
2020-09-15 15:04:37 -04:00