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

7149 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge c378c8033c Bump submodules. 2019-09-16 15:35:31 +02:00
Rolf Bjarne Kvinge d1d620291a Don't build the XM and the XI toolchains at the same time, they're not parallel safe. Works around mono/mono#16821.
Ref: https://github.com/mono/mono/issues/16821
2019-09-16 15:26:47 +02:00
Rolf Bjarne Kvinge 865571a58a We don't need python3 to run tests on older macOS versions. 2019-09-16 15:26:12 +02:00
Rolf Bjarne Kvinge cf126061a9 [install-source] Fix source mangling when building from source.
When building from source we don't need to mangle the paths.
2019-09-16 15:21:42 +02:00
Rolf Bjarne Kvinge 5b7ea53e2e [monotouch-test] Fix ProxyTest according to changed behavior in iOS 13.
In iOS 13 it's no longer possible to get PACs from file:// urls (this is
explained in the release notes, so it's expected). So launch a local
httpserver and serve the PAC that way.
2019-09-16 15:21:29 +02:00
Rolf Bjarne Kvinge c7522b3a71 Fix broken merge. 2019-09-16 15:21:24 +02:00
Rolf Bjarne Kvinge ac7d423af4 [mmptest] Test the release configuration of link-framework-1.
link-framework-1 ensures that we link away as many frameworks as possible.
Unfortunately there are things we can't link away when using the dynamic
registrar, so switch to testing the Release configuration instead, since that
automatically uses the static registrar (and the release configuration is the
better option to test anyway, since it's closer to what customers use to
release).
2019-09-16 15:21:12 +02:00
Rolf Bjarne Kvinge 628649a4ac [system-dependencies] Mono requires python3 to build from source now. 2019-09-16 15:21:04 +02:00
Rolf Bjarne Kvinge 2c66d68277 Fix a few merge breakages. 2019-09-16 15:20:59 +02:00
Rolf Bjarne Kvinge 6c85c5f405 Don't clean away mono if it's present, instead treat it like a submodule. 2019-09-16 15:20:46 +02:00
Rolf Bjarne Kvinge f62791c1eb Renumber an error so that it doesn't clash with another error. 2019-09-16 15:18:34 +02:00
Rolf Bjarne Kvinge 5b4efe22f4 Fix merge conflict. 2019-09-16 15:17:49 +02:00
Rolf Bjarne Kvinge 664bb077e2 Fix downloading mono archive when running device tests. 2019-09-16 15:11:49 +02:00
Rolf Bjarne Kvinge e96351f135 Adjust max OS versions according to Xcode 11 versions. 2019-09-16 15:11:33 +02:00
Rolf Bjarne Kvinge a4ab788428 Mono's build said to bump ulimit, so let's do that. 2019-09-16 14:30:59 +02:00
Waleed Chaudhry 1287b324e2
[Newsstandkit] Update for Xcode 11 beta 1 (#6992)
* [Newsstandkit] Update for Xcode 11 beta 1
2019-09-13 15:23:21 -04:00
Rolf Bjarne Kvinge 303aa0a649 Merge remote-tracking branch 'origin/xcode11' into master-xcode11 2019-09-13 18:35:18 +02:00
Waleed Chaudhry 7e94998a50
[ModelIO] Fix xtro broken by #6991. (#6996)
* [ModelIO] Fix tests broken by #6991
2019-09-13 12:14:56 -04:00
Alex Soto b02da292bf
[corebluetooth] Update for Xcode 11 GM (#6990)
This should let us provide a nicer API for the GM change about
`CBManager authorization` moving from an instance to a static
property (in all but iOS 13.0 / watchOS 6.0)
2019-09-12 13:40:46 -04:00
Alex Soto a1fba90ecb
[ModelIO] Fix MDLAnimatedQuaternion bindings (#6991)
Quaternion does need our special marshalling.
2019-09-12 10:53:42 -04:00
Manuel de la Pena 5511bb7ec6 [CoreHaptics] Expose protocol method that was ignored due to inheritance. (#6986)
* [CoreHaptics] Expose protocol method that was ignored due to inheritance.

After PR https://github.com/xamarin/xamarin-macios/pull/6961 we can now
do the right thing.

* Fix inheritance.
2019-09-11 20:44:36 -04:00
Manuel de la Pena 489719f56a [CoreHaptics] Remove the framework from Mac OS X until we know better. (#6987) 2019-09-11 18:49:29 -04:00
Manuel de la Pena 2a6d62dca3 [AVFoundation] Add support up to Xcode 11 GM. (#6984) 2019-09-11 18:49:02 -04:00
Vincent Dondain 44c774b222
Bump maccore to treat Xcode GM as beta (needed for bots) (#6985)
New commits in xamarin/maccore:

* xamarin/maccore@a9847b2ea5 [tests] Treat Xcode GM as beta so we don't have to update all devices to GM (#1964)

Diff: 079bd45a0f..a9847b2ea5
2019-09-11 18:00:32 -04:00
Vincent Dondain fe9e1c4248
Bump maccore to treat Xcode GM as beta (needed for bots) (#6983)
New commits in xamarin/maccore:

* xamarin/maccore@adfd6da1a9 [tests] Treat Xcode GM as beta so we don't have to update all devices to GM (#1963)
* xamarin/maccore@429df4c108 Merge pull request #1958 from xamarin/swift-o-matic-proto-list-method-arg
* xamarin/maccore@cfc4ce86ad Added support for protocol list types as arguments and return values to non-virtual methods.
* xamarin/maccore@7d9e752993 Merge pull request #1954 from xamarin/swift-o-matic-proto-list-tlprop
* xamarin/maccore@7d3dedc92b Update tools/tom-swifty/SwiftReflector/NewClassCompiler.cs
* xamarin/maccore@25b4bfab5e Update tools/tom-swifty/SwiftReflector/NewClassCompiler.cs
* xamarin/maccore@8d185b6925 value really does need to be in here. It doesn't actually affect anything that I can think of, but maybe some day it might.
* xamarin/maccore@f3a580747e Added top-level property support for protocol list types
* xamarin/maccore@069dddfa0f Merge pull request #1947 from xamarin/swift-o-matic-proto-list-return
* xamarin/maccore@f1fdbff8e4 Merge remote-tracking branch 'origin/master' into swift-o-matic-proto-list-return
* xamarin/maccore@8755421852 [provisioning] Fetch the latest master branch before getting what we need from it. (#1948)
* xamarin/maccore@0fecc9902b Handle return values of protocol list type
* xamarin/maccore@680156f264 Update the iOS distribution cert to one that is not expired. (#1943)

Diff: 48beb56b92..adfd6da1a9
2019-09-11 15:53:04 -04:00
Manuel de la Pena 036f23331c
[MetricKit] Add new framework up to Xcode11 GM. (#6969) 2019-09-11 15:46:38 -04:00
Waleed Chaudhry d4a775d8a3
[Network] Add currentPath property to NWPathMonitor. Fixes #5603. (#6931)
* Add currentPath property to NWPathMonitor. Fixes #5603.
2019-09-11 13:00:55 -04:00
Waleed Chaudhry 240e2716ae
[Foundation] Fix validate for insert for NSMutableArray<T>. Fixes #6876. (#6967)
* Fix validate for insert for NSMutableArray<T>. Fixes #6876.
2019-09-11 12:59:45 -04:00
Whitney Schmidt 53cf1fbf0b [MapKit] Update for new API Xcode11 b1 - b7 (#6934) 2019-09-11 09:56:10 -04:00
Vincent Dondain 483285adc6
[xharness] Bring more joy to the developer when all tests pass 🎉 (#6962)
- When everything just works, skip the "test results" header and output that all tests pass with a 🎉 (:
2019-09-11 08:15:06 -04:00
Rolf Bjarne Kvinge 3ee1329e0e
[generator] Handle inheriting the same member from multiple protocols. Fixes #6366. (#6961)
* [generator] Handle inheriting the same member from multiple protocols. Fixes #6366.

Fixes https://github.com/xamarin/xamarin-macios/issues/6366.

* Update xtro.
2019-09-11 05:12:43 -07:00
Sebastien Pouliot 40a12f46a7 [storekit] Update for Xcode 11 GM (#6978)
The `SKArcade.h` header file has not been part of the `StoreKit.h`
umbrella header since it was added (in early Xcode 11 betas).

That was reported in https://feedbackassistant.apple.com/feedback/7017660
and it's shadow https://github.com/xamarin/maccore/issues/1913

In Xcode 11 GM is was added, but only for macOS ?!? so it is only,
for now, enabled on macOS
2019-09-11 06:35:52 -04:00
Sebastien Pouliot 188c5ee493 [homekit] Update for Xcode 11 GM (#6979)
In Xcode 11 GM the HomeKit headers were updated to mark an API deprecated
on iOS, but only on tvOS headers, where the type is not available

This API is commented until we hear back from https://feedbackassistant.apple.com/feedback/7246945
shadowed in https://github.com/xamarin/maccore/issues/1959
2019-09-11 06:34:05 -04:00
Sebastien Pouliot e7986d2645 [coreaudio] Update for Xcode 11 GM (#6975)
With xcode11 GM the tvOS and macOS headers drifted from the iOS ones.
It's not clear if they should be different (hopefully not) or if iOS
has been forgotten...

While waiting for Apple's feedback (and the avoid breaking changes)
the new (conflicting) enum values are not included.

Internal reference: https://github.com/xamarin/maccore/issues/1960
2019-09-11 01:57:16 -07:00
Sebastien Pouliot 7dd96d1a04 [medialibrary] Update for Xcode 11 GM (#6977) 2019-09-11 01:56:47 -07:00
Sebastien Pouliot a240c0d8a8 [coretext] Update for Xcode 11 GM (#6976) 2019-09-11 00:05:46 -07:00
Sebastien Pouliot c23cf5d834 [fileprovider][macos] Update (remove some) API for Xcode 11 GM (#6974)
For some reason (likely to be added back later ?) Xcode 11 GM removed
most of new macOS 10.15 API for FileProvider.

So instead of deleting stuff this uses a lot of `[NoMac]` even if some
API are actually not part of any platform anymore, e.g. you can see the
following line in the GM headers

```
API_UNAVAILABLE(watchos, tvos) API_UNAVAILABLE(ios, macos)
```
2019-09-10 23:34:35 -07:00
monojenkins 684642a926 [xcode11] [msbuild][xm][xi] Fix building with netstandard libraries (#6959)
* [msbuild] Use task assembly path via a property

Xamarin.Mac.Common.ImplicitFacade.msbuild.targets: $(_NETBuildExtensionsTaskAssembly)

* [msbuild] Fix path to NET.Build.Extensions task assembly

.. which is no longer available for `net46`. Instead use the latest
`net472` path.

The incorrect path effectively disabled the `GetDependsOnNETStandard`
task, causing the issue.

Partially fixes https://github.com/xamarin/xamarin-macios/issues/6552 .

* [msbuild] Fix XM builds which use netstandard libraries.

`Xamarin.Mac.Common.ImplicitFacade.msbuild.targets`:

`ImplicitlyExpandDesignTimeFacades` adds a reference to `netstandard.dll`
by expanding the facades, if any of the references depend on it. Usually,
this gets handled by msbuild SDKs but in case of XM, this doesn't happen
in all cases. So, we need to scan the references for a `netstandard`
dependency.

The `ResolveAssemblyReference` task does this for us and populates
`$(_DependsOnNETStandard)` property. If it does not, then we use
`GetDependsOnNETStandard` task to get the same information.

Issue:
- the target incorrectly uses `$(DependsOnNETStandard)` instead of
  `($_DependsOnNETStandard)`.
- Fixing that means that condition `$(_DependsOnNETStandard) == ''` fails
  whenever `ResolveAssemblyReference` task runs (setting the property
  to `true` or `false`), causing `$(XM_DependsOnNETStandard)` to be unset.
    - thus failing the following logic to expand the facades when `$(_DependsOnNETStandard) == true`

So, we use the `$(_DependsOnNETStandard)` as the default value for
`$(XM_DependsOnNETStandard)`, so that it is correctly set to `true`,
irrespective of how we got that information, allowing us to correctly
expand facades when required.

Partially fixes https://github.com/xamarin/xamarin-macios/issues/6552 .

* [msbuild] Fix XI builds which use netstandard libraries.

`Xamarin.iOS.Common.targets`:

Issue:
- the target incorrectly uses `$(DependsOnNETStandard)` instead of
`($_DependsOnNETStandard)`.
- Fixing that means that condition `$(_DependsOnNETStandard) == ''` fails
whenever `ResolveAssemblyReference` task runs (setting the property
to `true` or `false`), causing `$(XI_DependsOnNETStandard)` to be unset.
- thus failing the following logic to expand the facades when `$(_DependsOnNETStandard) == true`

So, we use the `$(_DependsOnNETStandard)` as the default value for
`$(XI_DependsOnNETStandard)`, so that it is correctly set to `true`,
irrespective of how we got that information, allowing us to correctly
expand facades when required.

Prompted by: https://github.com/xamarin/xamarin-macios/issues/6552
2019-09-10 22:58:24 -07:00
Rolf Bjarne Kvinge 773a8562bd
[tests][mtouch] Don't sleep a second for timestamp rollover unless we're on a non-APFS file system. (#6958) 2019-09-10 22:54:19 -07:00
Vincent Dondain d9d6c9d800 [clockkit] Update for Xcode 11 GM (#6972) 2019-09-11 01:47:23 -04:00
Chris Hamons 34134263cc [msbuild] Disable broken iOS msbuild tests (#6971)
- These tests depend on nib format that Xcode 11 GM broke
- https://github.com/xamarin/xamarin-macios/issues/6970
2019-09-11 01:03:11 -04:00
Vincent Dondain e02c1a9281 [corelocation] Update for Xcode 11 GM (#6973) 2019-09-10 23:51:56 -04:00
Vincent Dondain 4bb4e09a02 Bump for Xcode 11 GM Seed (#6968) 2019-09-10 21:03:25 -04:00
Manuel de la Pena b5a85a115b
[CoreHaptics] Add support for the new framework up to beta 7. (#6943) 2019-09-10 13:03:26 -04:00
Vincent Dondain aac92a1c20
Update Versions info for iOS/tvOS 12.3 & 12.4 + watchOS 5.3 (#6945)
- Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/959179
- Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/956758

* Actually 12.3 & 12.4 are still on the 12.2 SDK

* Turns out our version plist check is assuming max version supported = max sdk version
2019-09-10 10:12:26 -04:00
Sebastien Pouliot 62018fdab4
[tests][intro] Add test for simlauncher [weak] frameworks. Fixes #6951 (#6957)
We ship a default, pre-built, simlauncher for iOS simulator applications.
This speeds up compilation for the default (non linked) simulator builds
quite a lot (no call to `clang` is needed). However it force us to keep
track of frameworks manually - `mtouch` can track them but requires
calling clang/ld to finish things up (killing the optimization).

It's easy to forget some (new) frameworks since they can be loaded
dynamically (on demand) _most_ of the time. Sadly there are a few cases
where doing so cause (hard to diagnose) problems - so we can't depend
on them being loaded, correctly for us.

The new test case loads the `otool -L` output (make when we build
simlauncher[32|64]-sgen) and compares it with mtouch's GetFramework
logic *and* with our namespaces (which is pretty close, with a few
exceptions, to the framework names). This will make it harder to
forget [weak] frameworks when adding new bindings :)

Fixes https://github.com/xamarin/xamarin-macios/issues/6951
2019-09-10 09:02:27 -04:00
Sebastien Pouliot 6488fcb8f9
[metalkit] Update for Xcode 11 up to beta 7 (#6956) 2019-09-10 09:00:53 -04:00
Rolf Bjarne Kvinge 15f0af7a1a
[registrar] Report a warning when the registrar export an abstract INativeObject type to Objective-C. (#6659)
* [registrar] Report a warning when the registrar export an abstract INativeObject type to Objective-C.

Exporting abstract types to Objective-C can lead to problems when at runtime
we're asked to create an instance of such a type (which we can't), so warn
when this happens.

This would have caught #6655, and the problems explained in #4969 as well.

Since this may trigger for code that's currently working fine, I'm making it a
warning instead of an error (which means adding some extra code to be able to
easily report warnings from the generator code).

* Don't assume a TypeReference can be successfully resolved every time.
2019-09-10 04:35:59 -07:00
Ankit Jain 14559e35bd [msbuild][xm][xi] Fix building with netstandard libraries (#6667)
* [msbuild] Use task assembly path via a property

Xamarin.Mac.Common.ImplicitFacade.msbuild.targets: $(_NETBuildExtensionsTaskAssembly)

* [msbuild] Fix path to NET.Build.Extensions task assembly

.. which is no longer available for `net46`. Instead use the latest
`net472` path.

The incorrect path effectively disabled the `GetDependsOnNETStandard`
task, causing the issue.

Partially fixes https://github.com/xamarin/xamarin-macios/issues/6552 .

* [msbuild] Fix XM builds which use netstandard libraries.

`Xamarin.Mac.Common.ImplicitFacade.msbuild.targets`:

`ImplicitlyExpandDesignTimeFacades` adds a reference to `netstandard.dll`
by expanding the facades, if any of the references depend on it. Usually,
this gets handled by msbuild SDKs but in case of XM, this doesn't happen
in all cases. So, we need to scan the references for a `netstandard`
dependency.

The `ResolveAssemblyReference` task does this for us and populates
`$(_DependsOnNETStandard)` property. If it does not, then we use
`GetDependsOnNETStandard` task to get the same information.

Issue:
- the target incorrectly uses `$(DependsOnNETStandard)` instead of
  `($_DependsOnNETStandard)`.
- Fixing that means that condition `$(_DependsOnNETStandard) == ''` fails
  whenever `ResolveAssemblyReference` task runs (setting the property
  to `true` or `false`), causing `$(XM_DependsOnNETStandard)` to be unset.
    - thus failing the following logic to expand the facades when `$(_DependsOnNETStandard) == true`

So, we use the `$(_DependsOnNETStandard)` as the default value for
`$(XM_DependsOnNETStandard)`, so that it is correctly set to `true`,
irrespective of how we got that information, allowing us to correctly
expand facades when required.

Partially fixes https://github.com/xamarin/xamarin-macios/issues/6552 .

* [msbuild] Fix XI builds which use netstandard libraries.

`Xamarin.iOS.Common.targets`:

Issue:
- the target incorrectly uses `$(DependsOnNETStandard)` instead of
`($_DependsOnNETStandard)`.
- Fixing that means that condition `$(_DependsOnNETStandard) == ''` fails
whenever `ResolveAssemblyReference` task runs (setting the property
to `true` or `false`), causing `$(XI_DependsOnNETStandard)` to be unset.
- thus failing the following logic to expand the facades when `$(_DependsOnNETStandard) == true`

So, we use the `$(_DependsOnNETStandard)` as the default value for
`$(XI_DependsOnNETStandard)`, so that it is correctly set to `true`,
irrespective of how we got that information, allowing us to correctly
expand facades when required.

Prompted by: https://github.com/xamarin/xamarin-macios/issues/6552
2019-09-10 00:02:55 -07:00
Sebastien Pouliot c41a5456eb
[simlauncher] Add missing weak frameworks to simlauncher (#6955)
Things often work fine without them but, in a few cases, you can run into
some weird problems.

Add better comments for synchronization... until we add some tests [1]

Replace the following, cancelled PR
* BackgroundTask https://github.com/xamarin/xamarin-macios/pull/6949
* INcomingCallNotifications https://github.com/xamarin/xamarin-macios/pull/6954
* LinkPresentation https://github.com/xamarin/xamarin-macios/pull/6953
* PencilKit https://github.com/xamarin/xamarin-macios/pull/6950
* SoundAnalysis https://github.com/xamarin/xamarin-macios/pull/6952

[1] https://github.com/xamarin/xamarin-macios/issues/6951
2019-09-09 22:58:39 -04:00