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

7088 Коммитов

Автор SHA1 Сообщение Дата
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
Alex Soto 161d2bc194
[d16-3] Bump mono to head of 2019-06 (4365dce) (#6756)
* Bump mono to head of 2019-06

* Fix mtouch SdkTest

* Fix test for reals.

* Update SdkTest.cs
2019-08-14 16:30:01 -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
Sebastien Pouliot 5464ead926
[storekit] Update Xcode 11 beta 1 to 5 (#6760) 2019-08-14 08:13:46 -04:00
Sebastien Pouliot ca81952852
[fileprovider[ui]] Update for Xcode 11 beta 1 to 5 (#6759)
Moved some code from uikit.cs since the type moved a while ago. That
ease code sharing with macOS (XM) but it stays into the UIKit namespace
(for XI) until `XAMCORE_4_0` to ensure binary compatibility.
2019-08-14 08:12:07 -04:00
Alex Soto 7bf95d97b0
[generator] Add support for [Native] enums inside [StrongDictionaries] (#6763) 2019-08-13 18:36:36 -04:00
Vincent Dondain fdc972eb19
Bump maccore and macios-binaries (#6761)
Hopefully fixes https://github.com/xamarin/maccore/issues/1912

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@37a7bf9 Bump mlaunch to xamarin/maccore@46d5f822fe (#23)

Diff: c4773043c5..37a7bf9ac7

New commits in xamarin/maccore:

* xamarin/maccore@46d5f822fe [sample tests] Switch to devdiv AzDO instance instead of the xamarin one. (#1851)
* xamarin/maccore@b3b8e8bfee [Xamarin.Hosting] Remove an unavailable SimDevice.RegisterNotificationHandler overload. (#1724)
* xamarin/maccore@63bf859723 [mlaunch] Connect to devices on a background thread. (#1778)

Diff: f26319899f..46d5f822fe
2019-08-13 16:17:17 -04:00
Sebastien Pouliot 4d6a9f505e
[foundation] Update for Xcode 11 beta 5 (#6754) 2019-08-12 18:14:03 -04:00
monojenkins 87b35e0e68 [d16-3] [linker] Always preserve INativeObject (interface) on types. Fixes #6711 (#6742)
* [linker] Always preserve INativeObject (interface) on types. Fixes #6711

Recent versions of the linker can remove _unused_ interfaces from types.

This optimization is only done when the type is not instantiated. However
our tools and runtime requires knowing if a type represent a native
object, using `INativeObject` even if the code that creates such instance
is not marked.

In details... the issue happens because the static registrar must be able
to detect that `MTAudioProcessingTap` is a native object, so it checks
if it implements `INativeObject`. Since it does not it fails with a 4104
error.

Why does it not ? because it's handled specially by the generator and
uses `FromHandle` to lookup (not create) instance. So the linker is able
to remove the creation code (totally fine) and then remove the
`INativeObject` (not fine since we need this).

The solution is to tell (a small like to) the linker that any marked type
that implements `INativeObject` is instantiated. That way we ensure that
the tooling (run against the linked app) and the runtime can determine
those types as native.

reference: https://github.com/xamarin/xamarin-macios/issues/6711

* Move code (to a better location) to avoid collection/exception changes. Also add an unit test

* Exclude new test case from watchOS since it does not ship with MediaToolbox
2019-08-12 13:53:14 -04:00
Oleg Demchenko f8948ed708
Merge pull request #6735 from xamarin/olegoid/xcode11-vsts-938452
[vsts-938452] Add `altool` upload and verify draft implementations
2019-08-12 12:47:49 -04:00
Sebastien Pouliot de97837da9
[quartzcomposer] Update for Xcode 11 beta 1 (#6752)
No other change in b2 to b5
2019-08-12 11:54:29 -04:00
Sebastien Pouliot 61c8af15d1
[naturallanguage] Update for Xcode 11 beta 1 (#6741)
No change in beta 2 to 5

* Run EmbeddingTest.Vector test on iOS and macOS only

reference: rdar 44948030

> Engineering has the following feedback for you: The tagging
> depends on the NLP assets being present on the device. The
> assets get downloaded through OTA. OTA download for NLP assets
> does not exist on watchOS and tvOS currently…only on iOS and
> macOS. It is conceivable that the assets got downloaded when you
> were on WiFi at a later point. So, the tagging should work.
2019-08-12 11:07:15 -04:00
Sebastien Pouliot 38e1d05d68
[externalaccessory] Update for Xcode 11 beta 5 (#6746) 2019-08-11 21:10:26 -04:00
Sebastien Pouliot 8c647fd469
[photos][macos] Fix breaking changes for XM (#6745) 2019-08-09 16:54:40 -04:00
Vincent Dondain cce8ad4826
[xcode11] Disable bcl tests (#6744)
See https://github.com/xamarin/maccore/issues/1808.
On `xcode11` we do not support mono binaries.
VSTS expects to be able to download mono when we need to build it from source for `xcode11`.
Reverting the tests to the old way would be too complicated to simply disable the bcl tests.
Those tests are still executed for simulator and will be re-enabled when we merge `xcode11`.
This was added as a reminder here: https://github.com/xamarin/xamarin-macios/issues/6212
2019-08-09 15:27:57 -04:00
Sebastien Pouliot 76d4fa7812
[pdfkit] Update for Xcode 11 beta 1 (#6743)
no change between b2 and b5
2019-08-09 12:00:20 -04:00
Jonathan CONTE 5b9fba99c8 [homekit] Update for xcode11 beta1 to beta5 - all platforms (#6710) 2019-08-09 11:17:10 -04:00
Sebastien Pouliot 193ae8bfdf
[mediaaccessibility] Update for Xcode 11 beta 5 (#6733) 2019-08-07 19:40:32 -04:00
Oleg Demchenko 4d905a8914
Update msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets
Co-Authored-By: Vincent Dondain <vidondai@microsoft.com>
2019-08-07 17:29:12 -04:00
Oleg Demchenko 3b293f5afe [vsts-938452] Add ALToolTaskBase.cs to Xamarin.MacDev.Tasks.Core.csproj 2019-08-07 16:10:32 -04:00
Oleg Demchenko 0fa3511948 [vsts-938452] Revert changes in Xamarin.MacDev.Tasks.Core.csproj 2019-08-07 16:10:21 -04:00
Oleg Demchenko 0b3ab2b777 [vsts-938452] Apply suggestion from Rolf 2019-08-07 16:10:09 -04:00
Oleg Demchenko be654adc70 [vsts-938452] Clean up file names and indentations 2019-08-07 16:09:58 -04:00
Oleg Demchenko 1cc7e073e6 [vsts-938452] Add UploadAppStoreBundle target 2019-08-07 16:09:45 -04:00
Oleg Demchenko b5ea7813a0 [vsts-938452] Add SesssionId to ALToolTaskBase 2019-08-07 16:09:32 -04:00
Oleg Demchenko 112247efb0 [vsts-938452] Change inheritance order of altool-task classes 2019-08-07 16:09:20 -04:00
Oleg Demchenko ffebb9ef5d [vsts-938452] Add altool tasks to Xamarin.iOS.Common.targets 2019-08-07 16:08:52 -04:00
Oleg Demchenko 46dfc93ed9 [vsts-938452] Refactor altool upload and verify tasks to actually work 2019-08-07 16:08:39 -04:00
Oleg Demchenko a610df25ab [vsts-938452] Output altool logs in xml format 2019-08-07 16:08:25 -04:00
Oleg Demchenko 751f171c2c [vsts-938452] Add altool upload and verify draft implementations 2019-08-07 16:08:12 -04:00
monojenkins eb77564659 [xcode11] Fix NLLanguageRecognizer crash (#6732)
The dispose of `nslang` was happening outside of the check if `nslang` is null. This was causing a crash when trying to recognise a string that contains just one number.
2019-08-07 13:08:27 -04:00