Alex Soto
d5b500ff58
Revert "[tests] Ignore bcl-tests that causes a SIGFPE ( #10235 )"
...
This reverts commit 318ee8a3f5
.
2020-12-10 14:31:18 -05:00
Sebastien Pouliot
db77ed51a1
[msbuild] Fix xcframework support when used directly as native references ( #10219 )
...
instead _indirectly_ thru a binding project.
It got broken when I fixed the msbuild tests (to avoid re-building
needlessly the project).
Test case: https://github.com/spouliot/xcframework
Also don't resolve when building binding projects - since it's not useful (as we already package the whole .xcframework)
2020-12-10 12:45:58 -05:00
Alex Soto
051ffe51ad
Revert "[tests] Ignore bcl-tests that causes a SIGFPE"
...
This reverts commit 2c3f8a69d2
.
2020-12-10 09:59:42 -05:00
Alex Soto
2417bd4d40
[mono] Bump mono to match Android
...
New commits in mono/mono:
* mono/mono@5e9cb6d1c1 Use explicit arithmetic checks in the amd64 watchOS simulator. (#20647 )
* mono/mono@4fdfb5b1fd Bump bockbuild for gtk+ patch
* mono/mono@6f6c3286b6 [runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes alerts because of PROT_WRITE|PROT_EXEC. (#20623 )
* mono/mono@124f115714 Fix iOS sdks build on Xcode 12 (#20574 )
Diff: dfbfe5eed1..5e9cb6d1c1
2020-12-10 09:52:03 -05:00
Alex Soto
82dce5ff46
[mono] Bump mono to get watchsim64 fix
...
New commits in mono/mono:
* mono/mono@5e9cb6d1c1 Use explicit arithmetic checks in the amd64 watchOS simulator. (#20647 )
* mono/mono@4fdfb5b1fd Bump bockbuild for gtk+ patch
* mono/mono@6f6c3286b6 [runtime] Avoid checking for hardened runtime on ios, its not needed, and it causes alerts because of PROT_WRITE|PROT_EXEC. (#20623 )
* mono/mono@124f115714 Fix iOS sdks build on Xcode 12 (#20574 )
* mono/mono@dfbfe5eed1 [2020-02] Build makefile to support Mac Catalyst (#20566 )
Diff: ac596375c7..5e9cb6d1c1
2020-12-10 09:43:44 -05:00
Rolf Bjarne Kvinge
26803f791d
[dotnet] Set default runtime feature switches. ( #10250 )
...
Set all current feature switches, except for InvariantGlobalization, to
defaults which trim the features.
Ref: https://github.com/dotnet/runtime/blob/master/docs/workflow/trimming/feature-switches.md
Ref: https://github.com/xamarin/xamarin-android/pull/5337
This drops the hello world app size from 28.6 MB to 23.5 MB. Full report:
https://gist.github.com/rolfbjarne/71cc18b49446862f1d42aa29526b0ac6
2020-12-10 15:19:40 +01:00
Rolf Bjarne Kvinge
38531bdcab
[CallKit] Add to macOS. ( #10244 )
2020-12-10 11:37:15 +01:00
Rolf Bjarne Kvinge
2a2c7f8087
[src] Fix dependencies of the maccatalyst-defines.rsp files for .NET assemblies. ( #10248 )
2020-12-09 16:31:32 -05:00
Alex Soto
7a2ee467c6
[xcode12.3] Bump to Xcode 12.3 RC ( #10240 )
...
* [xcode12.3] Bump to Xcode 12.3 RC
* Remove the odds to make it even
2020-12-09 12:24:02 -05:00
Rolf Bjarne Kvinge
88039ea35b
[compare-commits] Fix building the previous commit for Xamarin.MacCatalyst. Fixes #10222 . ( #10242 )
...
Fixes https://github.com/xamarin/xamarin-macios/issues/10222 .
2020-12-09 15:29:57 +01:00
Sebastien Pouliot
9a7e2068c8
[msbuild] Archive the user frameworks .dSYM when available ( #10220 )
...
This also includes dSYM inside xcframeworks, e.g.
```
...
├── dSYMs
│ ├── Universal.framework.dSYM
│ │ └── Contents
│ │ ├── Info.plist
│ │ └── Resources
│ │ └── DWARF
│ │ └── Universal
│ └── xcf_ios.app.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── xcf_ios
...
```
from https://github.com/spouliot/xcframework/tree/main/xamarin/xcf-ios
versus
```
...
└── dSYMs
├── Universal.framework.dSYM
│ └── Contents
│ ├── Info.plist
│ └── Resources
│ └── DWARF
│ └── Universal
└── xcf-ios.app.dSYM
└── Contents
├── Info.plist
└── Resources
└── DWARF
└── xcf-ios
...
```
from the similar ObjC sample https://github.com/spouliot/xcframework/tree/main/objc/xcf-ios
2020-12-09 09:29:40 -05:00
Sebastien Pouliot
aa73c33db9
[corebluetooth] Add nullability to (generated and manual) bindings ( #10241 )
...
See [HOWTO](https://github.com/xamarin/xamarin-macios/wiki/Nullability )
2020-12-09 09:10:55 -05:00
Sebastien Pouliot
14ad1a122b
[gamekit] Add nullability to (generated and manual) bindings ( #10237 )
...
See [HOWTO](https://github.com/xamarin/xamarin-macios/wiki/Nullability )
2020-12-08 21:37:26 -05:00
Sebastien Pouliot
4d53f14118
[tests] Re-enable ModelIO in Mac's introspection tests (fixed in 11.1 beta 2) ( #10239 )
2020-12-08 21:35:12 -05:00
Sebastien Pouliot
959aef9856
[network] Update for Xcode 12.2 beta 2 ( #10238 )
2020-12-08 17:15:26 -05:00
Alex Soto
318ee8a3f5
[tests] Ignore bcl-tests that causes a SIGFPE ( #10235 )
...
context: https://github.com/mono/mono/issues/20632
2020-12-08 12:52:04 -05:00
Sebastien Pouliot
d5f9191eed
[coremotion] Update for Xcode 12.3 beta 1 ( #10234 )
2020-12-08 10:42:22 -05:00
Alex Soto
8830d0c088
Merge pull request #10196 from dalexsoto/xcode12.3-watchsim64
...
[Xcode12.3] [watchOS] Add x86_64 simulator support (#10059 )
2020-12-08 08:04:53 -05:00
Sebastien Pouliot
16cd30a42c
[adservices] New in Xcode 12.3 beta 1 ( #10229 )
...
Annotations suggest that it's available on tvOS 14.3 but the headers
are not shipped in tvOS SDK.
2020-12-07 20:00:38 -05:00
Alex Soto
2c3f8a69d2
[tests] Ignore bcl-tests that causes a SIGFPE
...
context: https://github.com/mono/mono/issues/20632
2020-12-07 19:39:13 -05:00
Sebastien Pouliot
dcc9a8322d
[gamecontroller] Update for Xcode 12.3 beta 1 ( #10228 )
2020-12-07 17:23:13 -05:00
Sebastien Pouliot
a946610387
[healthkit] Update for Xcode 12.3 beta 1 ( #10225 )
2020-12-07 16:42:51 -05:00
Sebastien Pouliot
30f8156d23
[imageio] Update for Xcode 12.3 beta 1 ( #10224 )
2020-12-07 16:42:06 -05:00
Sebastien Pouliot
bcc953bf50
[coregraphics] Expose CGColor.CreateByMatchingToColorSpace ( #10223 )
...
and add unit test
Fix https://github.com/xamarin/xamarin-macios/issues/10212
2020-12-07 16:40:29 -05:00
Rolf Bjarne Kvinge
394c6f5955
[src] Fix generation and usage of the <platform>-defines.rsp files for .NET assemblies. ( #10209 )
2020-12-07 16:09:43 -05:00
Rolf Bjarne Kvinge
daa7e123e2
Add very early support for Mac Catalyst. ( #10199 )
...
* Install the Mac Catalyst versions of the mono libraries and BCL.
* The BCL is the same as the one for Xamarin.iOS, which means it has to be post-processed a bit to work with a Xamarin.MacCatalyst.dll
* Build our runtime for Mac Catalyst.
* Build a Xamarin.MacCatalyst.dll with the Mac Catalyst API (it compiles, but I haven't looked at the API surface at all). This PR assumes we're going to have a new TargetFrameworkIdentifier for Mac Catalyst, but a final decision has not been made (see https://github.com/dotnet/runtime/issues/44882 ), so this may change.
* Build a Xamarin.iOS.dll that contains type forwarders to Mac Catalyst for all the types that exist in both Mac Catalyst and Xamarin.iOS.
* Add support to xharness for running introspection on Mac Catalyst (there are a lot of failures because the API surface is wrong)
* Add support to our msbuild tasks and mtouch for building Mac Catalyst apps. This basically comes down to adding a new case in numerous places to either do things the iOS way or the macOS way, depending on each case.
* Add a __MACCATALYST__ define (which is in addition to the __IOS__ define).
2020-12-04 18:27:37 +01:00
Sebastien Pouliot
cf5a229cae
[msbuild] Only execute DetectDebugNetworkConfigurationTask for debug builds ( #10194 )
...
Not that it was very slow but it did make to the top 10 of the
archive build I was debugging.
Also reduce allocations in the task itself, for when it's needed.
2020-12-04 11:01:37 -05:00
Rolf Bjarne Kvinge
9e20285ebb
[tests] Merge the msbuild-mac tests into the Xamarin.MacDev.Tests project. ( #10129 )
2020-12-04 13:05:51 +01:00
monojenkins
e7855bcca1
[VSTS] If we fail dumping the env, continue. ( #10202 )
...
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-12-04 06:03:40 -05:00
monojenkins
1bc6fa3fd4
[VSTS] Ensure that we have a reasonable timeout. Will unblock device tests. ( #10206 )
...
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
2020-12-04 06:03:05 -05:00
Rolf Bjarne Kvinge
4f75b9e8da
[tests] Update test to cope with change in Xamarin.WatchOS.dll's location. ( #10198 )
...
Fixes this test failure:
* Xamarin.Linker.SdkTest.NoLLVMFailuresInWatchOS("../../32bits/Xamarin.WatchOS.dll"):
AOT compilation
Expected: 0
But was: 1
This regresed in 87d04ac331
.
2020-12-04 11:38:08 +01:00
Rolf Bjarne Kvinge
2784675612
[Metal] Remove extraneous Mac Catalyst advice.
2020-12-04 10:54:27 +01:00
Manuel de la Pena
fdfed3f74f
[VSTS] Ensure that we have a reasonable timeout. Will unblock device tests. ( #10204 )
2020-12-03 18:16:27 -05:00
Chris Hamons
5e105f6f30
[docs] Clarify optional protocol support with class vs interface ( #10021 )
...
- From https://github.com/xamarin/ios-samples/pull/410
Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2020-12-03 13:38:46 -05:00
Rolf Bjarne Kvinge
28f307adbc
Fix whitespace.
2020-12-03 17:39:55 +01:00
Rolf Bjarne Kvinge
b36b02c80e
[tests] Remove the MM0143 test, it doesn't look like VSMac is going to fix the bug. Fixes #8939 . ( #10183 )
...
* [tests] Skip the MM0143 test, it doesn't look like VSMac is going to fix the bug. Fixes #8939 .
Fixes: https://github.com/xamarin/xamarin-macios/issues/8939
* Remove more code.
2020-12-03 16:59:14 +01:00
Rolf Bjarne Kvinge
5f453afe28
[msbuild] Treat 'ResolvedCompileFileDefinitions' as a list of reference assemblies as well. ( #10197 )
...
The build logic will put reference assemblies in
'ResolvedCompileFileDefinitions' instead of '_ReferencesFromNuGetPackages'
when using the new-style packageref format, so we need to handle
'ResolvedCompileFileDefinitions' the same way we handle
'_ReferencesFromNuGetPackages'.
I was unfortunately not able to create a unit test for this scenario, because
xibuild sets MSBUILD_EXE_PATH to make msbuild look in our local build files,
and then the restore fails with:
> Issue9266.csproj : error MSB4236: The SDK 'Msbuild.Sdk.Extras/2.1.2' specified could not be found.
If I don't use "Msbuild.Sdk.Extras" in the test, then it doesn't hit the
broken path this PR is fixing. If I change xibuild to not set
MSBUILD_EXE_PATH, we're not testing our local bits anymore, but the system
Xamarin.Mac.
Fixes https://github.com/xamarin/xamarin-macios/issues/9266 .
2020-12-03 15:35:55 +01:00
Sebastien Pouliot
1d6cf0c46e
[scenekit] Add nullability to (generated and manual) bindings ( #10195 )
...
See [HOWTO](https://github.com/xamarin/xamarin-macios/wiki/Nullability )
2020-12-03 09:14:54 -05:00
Filip Navara
17722deab4
[dotnet] Prevent linking out code referenced by P/Invoke ( #10182 )
...
* [dotnet] Generate references.mm to prevent linking out code referenced by P/Invoke
* Address PR feedback: Namespaces.Foundation -> "Foundation."
* Address PR feedback: Simplify hasSymbols
* Reuse ListExportedSymbols step, respect App.SymbolMode
* Address PR feedback
* Workaround for tvOS
2020-12-03 14:04:11 +01:00
Rolf Bjarne Kvinge
cba2d269b9
[src] API tweaks for Mac Catalyst
2020-12-03 10:43:20 +01:00
Rolf Bjarne Kvinge
aaf2818af5
[src] Fix availability for MPNowPlayingPlaybackState
2020-12-03 10:43:20 +01:00
Rolf Bjarne Kvinge
f5fac88618
[src] Use framework-specific defines in a few places to exclude Mac Catalyst whenever needed
2020-12-03 10:43:20 +01:00
Rolf Bjarne Kvinge
93c0458298
[src] Sprinkle [NoMacCatalyst] around
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
e95020a729
[src] Exclude some obsolete/deprecated API from Mac Catalyst
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
1cfca082b4
[src] Generate generated-framework.g.cs for Mac Catalyst
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
9bb531b9c8
[src] Generate Xamarin.iOS.dll for Mac Catalyst from Xamarin.MacCatalyst.dll and Xamarin.iOS.dll for iOS.
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
90676df846
[src] Build Xamarin.MacCatalyst.dll
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
c6a048f128
[bgen] If we don't have availability attributes for Mac Catalyst, use the ones for iOS
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
fdd9fd9bc0
[src] Build Xamarin.MacCatalyst.BindingAttributes.dll
2020-12-03 10:43:19 +01:00
Rolf Bjarne Kvinge
199396e983
[mtouch] The product assembly for Mac Catalyst is Xamarin.MacCatalyst.dll.
2020-12-03 10:43:19 +01:00