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

6684 Коммитов

Автор SHA1 Сообщение Дата
Sebastien Pouliot f79f1c794c
[tests][monotouch-tests] Fix UITabBar.TintColor on tvOS (#6933)
Only check that setting `tintColor` to `nil` gives us back some
default color - IOW we only care it's not-null, the exact color
has no value being tested.
2019-09-06 20:56:07 -04:00
Rolf Bjarne Kvinge a9abc07cb3
Rename bundle identifier for the frameworks we ship. Fixes #6920. (#6926)
Rename the bundle identifier for the frameworks we ship, because apparently
Apple has added an App Store check to reject apps with multiple frameworks
with the same bundle identifier.

For some reason that includes rejecting frameworks that are both in iOS and
watchOS apps. This feels like a bug on Apple's end, but we can still easily
work around it, so let's do just that.

Strictly speaking it's not necessary to change the bundle identifier for tvOS
frameworks, but it's more consistent that way.

Fixes https://github.com/xamarin/xamarin-macios/issues/6920.
2019-09-06 09:30:49 -07:00
Sebastien Pouliot a482e773b4
Bump mono to include workaround for https://github.com/mono/mono/issues/16623 (#6906)
New commits in mono/mono:

* mono/mono@6256b82d62 [2019-02] [corlib] Add hack for Hebrew calendar data (#16645)
* mono/mono@20aebce49d Build pkg-config as 64bit only, libtiff as universal and remove gtk-quartz-engine.py (#16548)
* mono/mono@8a90cd9aac [2019-02] Use the right FileSystemWatcher sources (#16560)
* mono/mono@3f0b711650 [2019-02] Implement Read and WriteAsyncMemory in Mono DeflateStream (#16551)

Diff: 8d57a68962..6256b82d62
2019-09-06 11:45:56 -04:00
Sebastien Pouliot afa31e56c9
[coreaudio] Update for Xcode 11 (up to beta 7) (#6919)
CoreAudioTypes is _new_ but it's just some stuff that moved around,
however it now shows up separately in our API diff (and was quite
large because of the removal/addition caused by moving headers)
2019-09-06 08:51:44 -04:00
Manuel de la Pena 93d874b351
[AVFoundation] Add support up to Xcode 11 beta 7. (#6852) 2019-09-05 20:24:13 -04:00
Manuel de la Pena ea1ca3dd5f
[Foundation] Expose the usage of cellular data in the NSUrlSessionHandler. (#6921)
* [foundation] Expose AllowsCellularAccess on NSUrlSessionHandler (#6059)

This property was always set to `true` but it can be useful to turn it
off (and that was not easy with the existing implementation)

* [Foundation] Ensure that we allow celullar data by default until the user says otherwise. #6762

The default value in the NSUrlSession is to allow cellular data. This
small change closes the issue, since users will not have an unexpected
result.

Later we need to provide a proper fix to allow the property to be
exposed AND used the value of the session.

Fixes: https://github.com/xamarin/xamarin-macios/issues/6762
2019-09-05 19:11:30 -04:00
Manuel de la Pena 733d88e161
[CoreMidi] Update framework to the latests Xcode11 beta 7. (#6908) 2019-09-05 09:39:56 -04:00
Rolf Bjarne Kvinge 650768c059
[monotouch-test] Apple has fixed a crash in the ImageCaptioningTest, so update the test accordingly. (#6905)
* [monotouch-test] Apple has fixed a crash in the ImageCaptioningTest, so update the test accordingly.

Apple has fixed a crash we ran into with the ImageCaptioningTest, so now we
can re-enable the code that caused the crash.

* Fix test in the simulator.

* Fix test build failure for Xamarin.Mac.
2019-09-05 03:01:37 -07:00
Rolf Bjarne Kvinge c000ea0d54
[AVFoundation] Add constructor for AVCaptureSynchronizedDepthData to fix breaking change. (#6911)
AVCaptureSynchronizedDepthData's init method is not available, which means we
should make the corresponding binding obsolete. We've already removed the
bound constructor, because it made introspection crash, this is just the
second part.
2019-09-05 01:37:58 -07:00
Sebastien Pouliot 533cf01569
[imageio] Update for Xcode11 beta 7 (#6897) 2019-09-04 16:21:58 -04:00
Manuel de la Pena 1d9452a502
[CoreData] Add support up to Xcode11 beta 7. (#6896) 2019-09-04 09:32:29 -04:00
Rolf Bjarne Kvinge a04708190f
[src] Fix generic Contacts API. Fixes #6561. (#6895)
Make CNFetchResult generic (which it is in Objective-C), and add a generic
version of NSEnumerator (which Objective-C also has), so that we can bind two
API in CNContactStore that uses generic versions of those types.

Fixes https://github.com/xamarin/xamarin-macios/issues/6561.
2019-09-03 22:47:51 -07:00
Rolf Bjarne Kvinge da26592df0
Bump maccore to get fix for #6362. (#6899)
New commits in xamarin/maccore:

* xamarin/maccore@079bd45a0f [mlaunch] Re-use existing logic to properly install watch apps in the watch simulator in Xcode 11. Fixes xamarin/xamarin-macios#6362. (#1940)

Diff: 46d5f822fe..079bd45a0f
2019-09-03 22:39:48 -07:00
Rolf Bjarne Kvinge 007f1e6882
[tests] Skip font manager test in OS versions where it crashes due to bugs in the OS. (#6894)
Calls to CTFontManagerRegisterFontDescriptors with a null callback will crash
unless on iOS 13.1, so don't run this test on earlier OS versions.

Also update AssertXcodeVersion to cope with Xcode 11.1, which is unfortunately
just guesswork until an actual Xcode 11.1 is released (currently we can't
distinguish between iOS 13.0 and iOS 13.1 using the Xcode version, because
Xcode 11b7 supports them both, so for now we assume there will be an Xcode
11.1 which will support iOS 13.1).
2019-09-03 05:43:01 -07:00
monojenkins 4b046c57db [tests] Change URL for UrlSessionTest.CreateDataTaskAsync (#6891)
The current https://www.xamarin.com is being redirected to https://dotnet.microsoft.com/apps/xamarin but it takes a long time to completely load (not sure why) and that could be why we fail since we have a 30 seconds timeout - and it took more than that to (stop) load into safari.

Switching to https://www.microsoft.com/ is a lot faster and seems to fix the issue.

Reference:
https://github.com/xamarin/maccore/issues/1939
2019-09-03 05:06:01 -07:00
Connor Adsit c384add291 Jenkinsfile notarization (#6869)
* Add in notarization script for xamarin.mac/xamarin.iOS

* Flatten the list to get rid of the braces

* Add in keychain password

* Add login.keychain back in to access codesigning certificates

* Always sign pkgs, upload notarized copies

* Enable ios notarization and make notarized pkgs public

* Make notarization non-fatal

* Publish GH statuses for notarized PKGs

* Don't forget to declare URI variables for notarized pkgs

* report proper package links

* [jenkins] Improve package reporting.
2019-09-02 03:35:14 -07:00
Sebastien Pouliot 9e193eaca3
[foundation] Add support for NSValue/CGAffineTransform and StoreValueAtAddress overload (#6887)
Support for `NSValue`/`CGAffineTransform` exists in iOS/tvOS/watchOS,
from UIKit, but not for macOS. However this will be required for the
new protocols inside CoreImage.

Also add an overload for `StoreValueAtAddress` since the original
one was deprecated but we did not provide the new alternative to
update the code.
2019-08-30 18:00:04 -04:00
Sebastien Pouliot bc988580d9
[watchkit] Update for Xcode 11 up to beta 7 (#6882) 2019-08-30 14:29:24 -04:00
Alex Soto f933589401
Merge pull request #6844 from dalexsoto/alex-visionkit-xcode11
[VisionKit] Add Xcode 11 Beta 1 - 6 bindings
2019-08-30 11:19:18 -04:00
Whitney Schmidt 075fa2b477
[Xcode11] [carplay] Updates for beta 5 (#6678)
* carplay updates for b5

* Revert "delete iOS-CarPlay.todo"

This reverts commit 851a424557001c865b8dfe62c920f132cf84db06.

* actually remove iOS-CarPlay.todo

* delete .todo
2019-08-30 11:08:42 -04:00
Sebastien Pouliot c3d721e318
[generator] Fix CS1522 warning building generated bindings (#6881)
It's now possible to have an empty smart `enum` but this was generating
an empty switch statement that `csc` would warn us about, e.g.

```
build/{profile}/ASAuthorizationProviderAuthorizationOperation.g.cs(64,24): warning CS1522: Empty switch block
```

This fix the generation to skip the `switch` generation when no fields
are present in the enum.
2019-08-30 10:47:48 -04:00
Rolf Bjarne Kvinge 5c45c3eb1c [registrar] Fix computation of full token references. 2019-08-30 12:47:17 +02:00
Rolf Bjarne Kvinge 344dadb212
Bump the minimum iOS version to 7.0. Fixes #6213. (#6878)
Xcode 11 doesn't support anything below iOS 7.0 (the linker will automatically
change the deployment target to 7.0), so we need to drop support as well
(since our native bits will be targetting iOS 7.0, and we can't change that).

https://github.com/xamarin/xamarin-macios/issues/6213
2019-08-30 01:07:30 -07:00
monojenkins 125bac28a9 [xcode11] [Foundation] Ensure that the collection is not modified during the loop. #6704 (#6880)
* [Foundation] Ensure that the collection is not modified during the loop. #6704

Collections should not be modified during the loop, this is bad
practice and was a side effect of the TrySetCanceled. Is better to
create a temp collection with all the sources and cancel each of them.

Fixes https://github.com/xamarin/xamarin-macios/issues/6704
2019-08-29 19:14:13 -04:00
monojenkins b27cdc7d47 [xcode11] [monotouch-test] Attempt to fix AudioQueueTest.ChannelAssignments (#6873)
Attempt to fix the usage of AudioQueue.ChannelAssignments so that it follows
Apple's (incomplete) documentation.

- Fixes https://github.com/xamarin/maccore/issues/1623.
2019-08-29 14:15:12 -04:00
Rolf Bjarne Kvinge ec09193daf
Build native code with -std=c++14. (#6864)
* Build native code with -std=c++14.

Apple's headers now require -std=c++14 to compile their headers in C++ mode.

This fixes a compile error that would occur with the PhotosUI framework when
compiling code for C++.

* [mmp] Use -std=c++14 when compiling.

* Fix command line output.

* [mmp] Add all source files at the end, so they all get the -x clang argument applied.

* Limit when using c++14 in mtouch according to language.
2019-08-29 08:49:06 -07:00
prmallic fb225bbbdd
[UIKit] Fix threading issue in the selector performAsCurrentTraitCollection. #6870 (#6872)
The thread safe decorator was missing which made the API not behave like the Apple docs states.

https://github.com/xamarin/xamarin-macios/issues/6870
2019-08-29 09:25:59 -04:00
Manuel de la Pena d3c4c41aea
[CoreMedia] Add support up to Xcode beta 7. (#6858) 2019-08-29 09:12:18 -04:00
Sebastien Pouliot 1b8bb4b5c8
[security] Partial updates for Xcode 11 (up to beta 7) (#6867)
This includes some (3) older, unbound API from Xcode 10 and earlier.
It also move some (one) new API to the ignore list.
2019-08-29 08:17:06 -04:00
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
Alex Soto 9ac701128b
fix header name 2019-08-27 20:25:33 -04:00
Alex Soto 40ebc74cf1
Add framework to simlauncher 2019-08-27 17:54:48 -04:00
Alex Soto 7d7550cb26
[VisionKit] Add Xcode 11 Beta 1 - 6 bindings 2019-08-27 17:54:48 -04: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