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

6652 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 17b81b8a61
[builds] Set a different min watchOS version for arm64_32 architectures. (#6868)
This fixes a confusion with how mono builds libmono-native for watchOS, so we
can simplify our makefiles a little bit.

Ref: https://github.com/xamarin/xamarin-macios/pull/5465/files#r266486349
Ref: ce5ba1e41d (commitcomment-33834491)
2019-08-29 03:52:01 -07:00
Sebastien Pouliot c5d75e18be
[network][watchos] Enable Network.framework for watchOS (new in 6.0) (#6874)
Note that there is no new Xcode 11 API in this PR - just existing
API (from Xcode 10) now available on watchOS 6.
2019-08-28 21:22:10 -04:00
Sebastien Pouliot dc5fc120e0
[xcode11] Fix introspection tests running on 10.15 beta bots (#6866)
reference:
https://jenkins.internalx.com/blue/organizations/jenkins/macios/detail/xcode11/249/pipeline/202/
2019-08-28 11:48:08 -04:00
Rolf Bjarne Kvinge 010ae1d2c9
[runtime] Fix usage of objc_msgSend[Super] according to modified headers. (#6865)
It's now required to cast objc_msgSend[Super] to a function of the correct
signature, so let's do that.

Also remove the define that allowed us to use the previous behavior.
2019-08-28 08:05:38 -07:00
Jonathan CONTE dab13aa9b8 [AVKit] Update for Xcode 11 up to beta 7 (#6748) 2019-08-28 10:24:02 -04:00
Rolf Bjarne Kvinge b8e9c83ce0
[mtouch] Detect when we run into the 32-bit arm size limitation, and report a better error. Fixes #6526. (#6855)
Also limit the output from the native compiler, so that we don't overload the
IDEs with output if the native compiler produces tens of thousands of errors.

Fixes https://github.com/xamarin/xamarin-macios/issues/6526.
2019-08-28 04:54:26 -07:00
Rolf Bjarne Kvinge 37e710c44b
[generator] Reference bound *Appearance types using global:: syntax. Fixes #6834. (#6859)
The generator will create special *Appearance types (these are nested
classes). If we've bound a type with the same *Appearance name, we can end up
in a situation where the csc compiler uses the the type we don't want due to
C#'s resolution rules - this happens if the bound *Appearance type is
referenced from the containing type of the special *Appearance type. So always
reference the bound *Appearance types using global:: syntax.

Fixes https://github.com/xamarin/xamarin-macios/issues/6834.
2019-08-28 01:20:38 -07:00
Vincent Dondain df378b03e0
Bump for (so-called) Xcode 11 beta 7 (#6861) 2019-08-27 17:46:52 -04:00
Rolf Bjarne Kvinge 73ce0f8882
[registrar] Fix verification of generic parameters to accept unrelated generic types. Fixes #6687. (#6850)
* [registrar] Fix verification of generic parameters to accept unrelated generic types. Fixes #6687.

When we export generic classes to Objective-C, we verify that any generic
parameters are constrained so that we know how to handle them.

Example:

    class MyObj<T> : NSObject where T: NSObject
    {
        [Export ("foo:")]
        public void Foo (T obj);
    }

in this case we verify that the parameter T is constrained to NSObject, so
that we can treat the argument like an NSObject.

The problem was when the function contained a generic type which was not
related to T:

    class MyObj<T> : NSObject where T: NSObject
    {
        [Export ("foo:")]
        public void Foo (Action<int> obj);
    }

in which case the same logic would kick in and reject the Action<int> type
since it's not related to NSObject (no generic arguments could be found, and
the default response was 'not valid').

So I've changed the default response for generic types that are unrelated to
the generic parameter we're verifying to accept such types.

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

* No need to use a UIViewController as the super class, NSObject works just fine for this test.

Fixes the test build on macOS.
2019-08-27 06:41:17 -07:00
Sebastien Pouliot fac23dc599
[xcode11] Update with Xcode 10.3 changes and fix intro on iOS 12.4 (#6851)
Xcode 10.3 was released over the summer with a very small subset
of the (already out) Xcode 11 betas API.

This PR fix some availability attributes and also ensure we can
run introspection tests successfully on an iOS 12.4 device.
2019-08-27 08:38:12 -04:00
Manuel de la Pena b5d4aed944
Bump mono to latests 2019-02 head. (#6853) 2019-08-27 08:26:33 -04:00
Rolf Bjarne Kvinge f3fbbd7047
Add a dummy x86_64 slice to all our native libraries that don't have one. (#6848)
Apple's notarization tool has a bug where they incorrectly flag Mach-O
binaries without an x86_64 slice, so make sure all our libraries have one.
2019-08-26 09:51:50 -07:00
Rolf Bjarne Kvinge cce789d481
[generator] Handle subclasses of NSObject as ref/out parameters in third-party libraries. Fixes #6828. (#6829) (#6847)
For third-party libraries we need to look up the base type using the BaseType attribute.

Fixes https://github.com/xamarin/xamarin-macios/issues/6828.
2019-08-26 07:14:26 -07:00
Alex Soto 515f6640cc
[Vision] Update bindings to Xcode 11 Beta 1 - 6 (#6837)
Fixes #6830

* [Vision] Update bindings to Xcode 11 Beta 1 - 6

* Fix feedback

* More feedback
2019-08-23 20:08:49 -04:00
Emanuel Fernandez Dell'Oca 616d6544ad [msbuild] Improve altool task by logging execution errors (#6815)
* [msbuild] Improve altool task by logging execution errors
The altool task was just logging the XML output produced by the tool execution but was not logging any build error neither failing in that case.

* [msbuild] Log the altool output when failing to parse it
2019-08-23 08:38:08 -07:00
Emanuel Fernandez Dell'Oca d859ceac6c [msbuild] Fixes publishing targets (#6824)
* [msbuild] Adds missing SessionId property to altool targets
Sets the missing SessionId property on the altool targets to enable running those from Visual Studio.

* [msbuild] Ensure Entitlements are compiled before creating an IPA

When creating an IPA from an archive the `CreateAppBundle` target will be skipped because we already have a bundle and the same will happen with the Entitlements compilation, but we need to re-compile those with the new certificate and profile. Adding `_CompileEntitlements` as a `CreateIpa` dependency will ensure it's run when creating an IPA file from an archive. Nothing changes when creating IPAs from a regular build since at the point the of creating the IPA the `_CompileEntitlements` target was already run, so it will be skipped.
2019-08-23 11:08:22 -04:00
Vincent Dondain 66698b49f3
[monotouch-test] Ignore FontManagerTest's RegisterFontDescriptors_WithCallback (#6833)
This test started failing on iOS 13 beta 5. It is still failing on beta 7.
This test is designed to fail at every new iOS version until it's fixed by Apple.
Let's ignore it for good, mention it in https://github.com/xamarin/xamarin-macios/issues/6212 and check it one last time at GM.
2019-08-23 10:38:49 -04:00
Manuel de la Pena 85f7b010a4
[CoreVideo] Update framework for Xcode 11 beta 6. (#6822) 2019-08-22 14:57:08 +02:00
Vincent Dondain b02605834c [monotouch-test] Fix PinAnnotationViewTest's InitWithFrame (#6823)
FYI iOS 13 changed the tint color for the red pin, it's now (255, 69, 58, 255) instead of (255, 59, 48, 255).
Let's not test iOS colors for Apple (:
A simple NotNull check should be enough.
2019-08-22 12:15:56 +02:00
Vincent Dondain 8fb102fbe9 [tests] Fix MTouch's LinkerWarnings test for Xcode 11 beta 6 (#6821)
We were getting:

```
Xamarin.MTouch.LinkerWarnings: The warning 'MT5203: Native linking warning: warning: ignoring file /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/test-libraries/.libs/ios/libtest.x86_64.a, building for iOS Simulator-i386 but attempting to link with file built for unknown-archive' was not found in the output:
    Message #1 did not match:
        actual: 'Native linking warning: warning: ignoring file /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/test-libraries/.libs/ios/libtest.x86_64.a, building for iOS Simulator-i386 but attempting to link with file built for iOS Simulator-x86_64'
        expected: 'Native linking warning: warning: ignoring file /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/test-libraries/.libs/ios/libtest.x86_64.a, building for iOS Simulator-i386 but attempting to link with file built for unknown-archive'
```
2019-08-22 12:13:43 +02:00
Manuel de la Pena 5bd72087ff
[TouchUnit] Bump touch unit to work when we do not longer have /Developer/Monotouch. (#6826) 2019-08-22 02:45:34 +02:00
Sebastien Pouliot edcfeab1fd
[authenticationservices] Remove [Abstract] from ASAuthorizationPasswordRequest. Fix #6816 (#6819)
The documentation was updated and does not mention this anymore.

References:
* https://developer.apple.com/documentation/authenticationservices/asauthorizationpasswordrequest?language=objc
* https://github.com/xamarin/xamarin-macios/issues/6816
2019-08-21 13:38:39 -04:00
Rolf Bjarne Kvinge e4a926e8f2
[tests] Adjust expected result of looking for 'mono_native_initialize'. Fixes xamarin/maccore#1809. (#6806)
Fixes https://github.com/xamarin/maccore/issues/1809.
2019-08-21 13:30:33 +02:00
Vincent Dondain 37e7023a0a
[tests] Add check for bluetooth permission (#6796) 2019-08-21 06:40:56 -04:00
Vincent Dondain dd394471a5 [fileprovider] Update for Xcode 11 beta 6 (#6801) 2019-08-20 22:41:08 -04:00
Alex Soto a0b73b6663
[UIKit] Update bindings to Xcode 11 Beta 6 (#6807)
* [UIKit] Update bindings to Xcode 11 Beta 6

* Update src/uikit.cs

* Apply suggestions from code review

* Update src/uikit.cs

* Update src/uikit.cs

* Update src/uikit.cs
2019-08-20 21:55:08 -04:00
Sebastien Pouliot e9c26b31e3 [authenticationservices] Update for Xcode 11 beta 6 (#6804) 2019-08-20 17:18:16 -04:00
Sebastien Pouliot 91d228add9 [replaykit] Update for Xcode 11 beta 6 (#6803) 2019-08-20 17:15:16 -04:00
Vincent Dondain a7ed151c89
[videosubscriberaccount] Update for Xcode 11 beta 6 (#6800) 2019-08-20 14:43:01 -04:00
Sebastien Pouliot 4b61850243
[xcode11] Bump for beta 6 (#6798)
AVFoundation crash added to https://github.com/xamarin/xamarin-macios/issues/6212
2019-08-20 10:06:18 -04:00
Oleg Demchenko d24f87bff6
Merge pull request #6791 from xamarin/olegoid/altool-feature
Update Versions-ios.plist.in with `altool` info
2019-08-19 09:34:26 -04:00
Sebastien Pouliot d5f5eebb75
[quicklookthumbnailing] Update for Xcode11 beta 1 to 5 (#6789)
New framework - but it includes some of iOS API that were previously in
QuickLook.framework. Types were moved but remains in the old namespace
until `XAMCORE_4_0` is defined.
2019-08-19 09:01:52 -04:00
Oleg Demchenko e62da78af1
Update Versions-mac.plist.in 2019-08-19 07:30:47 -04:00
Oleg Demchenko 1651e9d372
Update Versions-ios.plist.in 2019-08-19 06:07:21 -04:00
Sebastien Pouliot 310d694a9c
[networkextension] Update for Xcode 11 beta 1 to 5 (#6788) 2019-08-16 14:18:40 -04:00
Emanuel Fernandez Dell'Oca c391c6dbdd [xcode11][publishing] Added conditional behavior to CreateIpa and its dependencies (#6753)
* [publishing] Added conditional behavior to CreateIpa and its dependencies

The targets execution needs to change based on the 'IsAppDistribution' property value, which will be set from the IDE.
According to the value of this property, some dependencies should be run or should be skipped.
The strategy adopted is to use the BeforeTargets value because doing this way we will force the conditionals over '$(IsAppDistribution)' to be evaluated each time a target is attempted to be run.
The most intuitive way of doing it is by directly add DependsOnTargets and conditions on the PropertyGroup items, but doing this will not work because the IDE usually runs the targets when the MSBuild project is already loaded, which means that the properties have already been evaluated so they will not be evaluated again, which causes conditional values to be out of date.
The only way of making it work in these cases is by forcing the conditional evaluations of each target execution attempt, and that is accomplished by adding the conditions directly on the Target 'Condition' property.

* [publishing] Simplified targets by using DependsOn + conditions in existent targets

- Using BeforeTargets on `_BeforeCreateIpaForDistribution` made that target run even if `CreateIpa` was skipped because its condition was false, which is wrong. Instead of including that condition into `_BeforeCreateIpaForDistribution` it seems more reasonable to move it to the `CreateIpa` DependsOnTargets property group to avoid maintaining the same condition on both targets in future changes that could lead to errors.
- Removed `_BeforeCreateIpaForBuild` since it was an unnecessary extensibility point and made the `CreateIpa` dependencies more complicated.
- We still need `_BeforeCreateIpaForDistribution` and `_BeforeCreateIpaForDistributionDependsOn` as extensibility point for the publishing workflow on VS.
- Simplified the previous approach by removing unnecessary targets and dependencies when the only thing needed was just the following condition on existent targets: `'$(IsAppDistribution)' != 'true'`. For instance, removed `_BeforeCodeSignForBuild` and included the mentioned condition into `_CreateAppBundle`. The purpose of `_BeforeCodeSignForBuild` was just skipping `_CreateAppBundle` for distribution builds, but it made the targets more complicated to understand and maintain.
- Same thing applies to `_BeforeCollectFrameworksForBuild` and `_BeforeCodesignNativeLibrariesForBuildDependsOn` which were just skipping the `_CompileToNative` target for distribution builds.
2019-08-16 11:00:20 +02:00
Alex Soto a509166b35
[CoreML] Update bindings to Xcode 11 Beta 1 - 5 (#6784)
* [CoreML] Update bindings to Xcode 11 Beta 1 - 5

* Apply feedback
2019-08-15 21:06:00 -04:00
Sebastien Pouliot 6b1b7971f8
[iad] Update for Xcode beta 1 to 5 (#6780) 2019-08-15 14:04:47 -04:00
Sebastien Pouliot 30c6b01daf
[corewlan][macos] Update for Xcode 11 beta 1 (#6779)
No other change in beta 2 to beta 5
2019-08-15 11:51:14 -04:00
Sebastien Pouliot 9b45b3c1ba
[tests][xtro] Fix reported failure for SFSafariServicesVersion on macOS (#6776)
The `enum` is decorated with `[Obsolete]` since it's unused by any API.
However recent logic skips obsolete members it so it looks missing...
even if it won't be removed until `XAMCORE_4_0` is enabled.

Not quite clear why the original PR [1] did not report it... but all
subsequent ones are
https://github.com/xamarin/xamarin-macios/pull/6767
2019-08-15 08:22:51 -04:00
Sebastien Pouliot b9201c7afc
[executionpolicy] Update for Xcode 11 beta 1 (#6774)
New framework for macOS-only
No changes in beta 2 to 5
2019-08-14 22:07:55 -04:00
Sebastien Pouliot cafbec1a0f
[gamekit] Update for Xcode 11 beta 1 to 5 (#6773)
`gamePlayerID` and `teamPlayerID` are decorated as `[iOS (12,4)]...` since
the headers mention so in both Xcode 11 betas and the recent 10.3 (stable)
https://github.com/xamarin/xamarin-macios/wiki/GameKit-iOS-xcode103-final

The `enum GKError` has been unified (at some point) so it was simplified.
2019-08-14 22:07:15 -04:00
Sebastien Pouliot 45d90b6995
[macos][imagekit] Update for Xcode 11 beta 1 (#6772)
No change in beta 2 to 5
2019-08-14 22:06:24 -04:00
Sebastien Pouliot 04263f36d4
[contactsui] Update for Xcode 11 beta 1 to 5 (#6771)
Mark the `iconWithContact:` API as not available with Catalyst

Note that the category `UIApplicationShortcutIcon (ContactsUI)` was
inlined in UIKit's `UIApplicationShortcutIcon` so only that file needs
to be updated.
2019-08-14 22:03:52 -04:00
Rolf Bjarne Kvinge 5bf473ed56 The watchOS 3.2 simulator is now functional again, so let's use it. (#6769)
Ref: https://github.com/xamarin/maccore/issues/1850
2019-08-14 14:02:04 -04:00
Sebastien Pouliot 3893981ac0
[eventkit] Obsolete `EKReminder` default constructor (#6768)
`[EKReminder init]` is not usable and now return `nil`.

Before Xcode 11 it was never really usable but an instance was returned.

references:
* https://feedbackassistant.apple.com/feedback/6453725
* https://github.com/xamarin/maccore/issues/1832
2019-08-14 13:10:20 -04:00
Rolf Bjarne Kvinge d4192a59f0
[xcode11] Remove the WatchKit framework from iOS while keeping API stability. Fixes #6492. (#6503)
* [WatchKit] Remove this framework for iOS while keeping backwards compatibility. Fixes #6492.

* Copy all generated sources and modify them to throw PlatformNotSupported exceptions.
* Adjust some existing source code to also throw PlatformNotSupported exceptions.
* Sprinkle Obsolete attributes generously.
* Stop generating code for the WatchKit framework for iOS.

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

* [introspection] Adjust test.

* [mtouch] Don't link with WatchKit, and show a warning if we detect code that want to use WatchKit.

* [xtro] Remove WatchKit for iOS.

* [introspection] Don't check obsoleted NSString fields for null.

There's probably a reason the field was obsoleted.

* [introspection] Add exception for the WatchKit framework.

* [xtro] Ignore obsolete enums.

There's probably a reason they're obsoleted.

In particular it solves a confusion between WKWebKit.WKErrorCode and
WatchKit.WKErrorCode: for iOS, the latter is obsoleted, and this way we always
process the former instead.

* [mtouch] Adjust wording for MT4178 to be more accurate.

* [WatchKit] Make more API obsolete/hidden.

Two classes managed to slip past the first time.

* [tests] Adjust test after WatchKit removal.
2019-08-14 17:46:55 +02:00
Sebastien Pouliot 6daac2c687
[safariservices] Update for Xcode 11 beta 1 to 5 (#6767)
Also introduce `PlatformName.MacCatalyst` while keeping the old
`UIKitForMac`, with the same value, until we can clean up existing
bindings globally (and without too much conflicts).
2019-08-14 10:41:44 -04:00
Sebastien Pouliot 667abf2b83
Merge latest d16-2 into xcode11 (#6766)
* [tests] Handle Xcodes without proper versions by ignoring them. Fixes xamarin/maccore#1768. (#6386)

This can happen if an Xcode hasn't been completely/successfully installed or
removed.

Fixes https://github.com/xamarin/maccore/issues/1768.

* [CoreGraphics] Fix lifetime of delegates passed to CGPatternCreate. (#6368)

We may get callbacks after the managed CGPattern instance has been
disposed/garbage collected, so make sure our delegates survives that long.

Since the delegates don't need any instance state, just make them static.

* [d16-2] Bump mono to pick tz/DST fixes.. (#6454)

* [xharness] Don't try to find simulators for ignored tests. (#6421)

Trying to find a simulator will mark the test as a failure if the simulator
couldn't be found, and we don't want that to happen to ignored tests.

This should fix an issue where xharness seems to try to run the 32-bit
simulator tests when asked to run only device tests.

* [tests] Only call MTLDevice.CreateSharedTexture macOS 10.14+. Fixes xamarin/maccore#1663. (#6423)

Fixes https://github.com/xamarin/maccore/issues/1663.

* [d16-2] [GameController] GCGamepad is deprecated in the headers, so mark it as such. Fixes xamarin/maccore#1742. (#6428)

* [GameController] GCGamepad is deprecated in the headers, so mark it as such. Fixes xamarin/maccore#1742.

Fixes https://github.com/xamarin/maccore/issues/1742.

* Add attribute for tvOS too.

* [package] Remove creation of files/symlinks under /Developer (#6665)

* [d16-2] [tests] wrench is long gone (#6698)

* [tests] wrench is long gone

* Use a different Url that works and ensure we get a nice message when we have a failure.

* Fix new callback test.

* Ignore the outgenerated projects until they are moved to their own dir. (#6714)

Related issue https://github.com/xamarin/xamarin-macios/issues/6162
2019-08-14 10:04:04 -04:00
Jonathan CONTE 535dad01cb [xcode11] [EventKit] bindings for all platforms (#6751) 2019-08-14 08:18:43 -04:00