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

2286 Коммитов

Автор SHA1 Сообщение Дата
Jo Shields 6f2ebedb74 Bump to mono:2018-06 (#4277)
* Bump to mono:2018-06

* Bump mono

* Updates compression to work with the public span

* Bump mono

* Fixes pointer check logic in Deflater

* Bump mono

* Fixes pointer check logic in Deflater

* Bump mono

* Bump Mono

* [runtime] always use `mono_jit_set_aot_mode` (#4491)

`mono_jit_set_aot_only` is deprecated and accidentally broke with
https://github.com/mono/mono/pull/7887

This should fix device tests with `mono-2018-06`

* Testing with Zoltan's patch

* Include libmono-system-native on Xamarin.Mac

* Bump Mono

Commit list for mono/mono:

* mono/mono@7bcda192a0 Bump llvm to release_60/fc854b8ec5873d294b80afa3e6cf6a88c5c48886. (#9786). (#9804)
* mono/mono@23e95ec7ad Apply F# portable pdb debug fix for pinvokes & bump (#9797)
* mono/mono@295f6d32af [2018-06] [MacOS] On Mac, use the copyfile API to copy files (#9696)

Diff: 7d5f4b6136...7bcda192a0

* Revert 4bacab3d5c, it doesn't fix the ios aot problems.

* Bump mono

* [tests] Adjust the MT0137 test for mcs change in behavior.

Starting with mono 5.16 mcs will now add assembly references when the assembly
is only used in attributes (this was already the case for csc in both 5.14 and
5.16, so it seems to be a compatibility change).

Adjust the MT0137 test accordingly.

* [msbuild] Fix parsing of json parser errors to handle trailing periods in the error message.

Fixes this test:

    1) Test Failure : Xamarin.iOS.Tasks.Bug60536.TestACToolTaskCatchesJsonException
         ColumnNumber
      Expected: 2
      But was:  0

* Bump mono

* [builds] Install the old llvm binaries into the LLVM36 directory and make the 32 bit builds use that.

* Bump mono

* Bump mono

* [jenkins] Don't give VSTS a fake branch. (#4667)

Something in VSTS changed, and now fake branch names don't work anymore.

So instead use real branch names (and for pull requests I've created a
'pull-request' branch we can use).

* Assembly.LoadFile accepts only absolute path

* [linker] Add new Facade (System.Threading.Tasks.Extensions).

Fixes these MTouch test failures:

    1. Xamarin.Linker.SdkTest.iOS_Unified :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    2. Xamarin.Linker.SdkTest.tvOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

    3. Xamarin.Linker.SdkTest.watchOS :   Facades
      Expected:
      But was:  < "System.Threading.Tasks.Extensions" >

* [mono-sdks] Necessary changes to unify the LLVM provisioning for both iOS and Android. (#4732)

* Bump Mono

* [mtouch] add mixed-mode support (#4751)

* [mtouch] add --interp-mixed option

When enabling this option, mtouch will AOT compile `mscorlib.dll`.  At
runtime that means every method that wasn't AOT'd will be executed by
the runtime interpreter.

* [mtouch] Add support to --interpreter to list the assemblies to (not) interpret.

* [msbuild] Simplify interpreter code to use a single variable.

* Fix whitespace.

* [mtouch] Move mtouch-specific code to mtouch-specific file.

* [msbuild] An empty string is a valid value for 'Interpreter', so make it a non-required property.

* [mtouch] Add sanity check for aot-compiling interpreted assemblies.

* Bump Mono

* [linker] Updates SDKs facades list

* Bump mono

* [msbuild] Adds facades which might override default nuget version to framework list

The collision resolver task reads them from here https://github.com/dotnet/sdk/blob/master/src/Tasks/Common/ConflictResolution/FrameworkListReader.cs

* Bump to a VSfM version that can build XM Classic projects.
2018-10-10 11:02:28 -04:00
Rolf Bjarne Kvinge d063c531f6 [tests] Disable link-preserve-calendar-1 until we can upgrade it to be a Unified test.
See https://github.com/xamarin/xamarin-macios/pull/4596#issuecomment-428562076
for reference: mono's desktop API changed, the linker behavior the test is
verifying is only expected when using XM's Mobile profile.
2018-10-10 15:02:52 +02:00
Rolf Bjarne Kvinge ec88393dcf
[CoreFoundation] Simplify DispatchQueue.MainQueue. (#4925)
* The dispatch_get_main_queue function doesn't exist anywhere (tested on iOS 5.1.1 - iOS 12, macOS 10.7 - 10.14), and when called from native code, it's always an inlined function, so just remove the call completely.
    
* Getting the _dispatch_main_q symbol from either the current address space, libSystem or libdispatch works fine everywhere. Looking up something in the current address space is costly (according to 'man dlsym'), so stop doing that: only look in libdispatch (since that's where the symbol actually is according to 'nm').

* I find no reason for the lock in DispatchQueue.MainQueue, nor does history reveal anything helpful, so I removed the lock.
2018-10-10 10:48:22 +02:00
Rolf Bjarne Kvinge 1f5ba0b5c0
[xharness] Improve logging a bit. (#4952)
* [xharness] Improve logging a bit.

* Use timestamp in more log paths.
* Create numbered log subdirectories to make things nicer to look at in a
  terminal (thousands of subdirectories can be annoying to shift through; this
  way there's an additional subdirectory level).

* Avoid string interpolation when not needed.
2018-10-10 08:05:26 +02:00
Rolf Bjarne Kvinge e4db45ed63
[xharness] Add length consistency check when capturing a log file. (#4951)
Sometimes files just shrink, and we must cope.

Two possible causes I can think of:

* System log rotation.
* We erase a simulator when trying to capture its system log.

There are probably many more causes, but two is more than enough to make sure
we don't fail when it happens.
2018-10-09 15:53:51 +02:00
Rolf Bjarne Kvinge 65b21ee48d
[CoreFoundation] Fetch a few static values lazily. (#4924)
* [CoreFoundation] Fetch a few static values lazily.

This avoids using static constructors, and also avoids fetching the values
unless they're needed.

* Generate the code for _dispatch_data_destructor_free instead of using a manual binding.

* [CoreFoundation] Bind kCFBooleanTrue/kCFBooleanFalse using the generator.

Since the generator doesn't know about CFBoolean, bind as IntPtr instead, and
fix most callers to use the handle directly, instead of getting a CFBoolean
object and then immediately getting the handle.

* Add back comment.

* Update xtro.

* Fix typo check.

* Use complete path for the library in the Field attribute.

* Update xtro.
2018-10-09 15:51:17 +02:00
Aleksey Kliger (λgeek) d003a9b918
[monotouch-test] Disable X509Certificate(byte[]) tests on watchOS (#4942)
* [monotouch-test] Disable X509Certificate(byte[]) tests on watchOS

* [tests] Add TestRuntime.AssertNotWatchOS()

* fixup WatchOS build
2018-10-08 11:01:24 -04:00
Rolf Bjarne Kvinge 232f9ecc8b
[xharness] Verify that there's at least 1GB of space left before trying to build or run each test. (#4937)
If there's not enough space, then fail the test.

This might help https://github.com/xamarin/maccore/issues/965 (test run hangs).
2018-10-08 07:32:50 +02:00
Rolf Bjarne Kvinge 28b1978387
Bundle Make.version with the packaged XM tests to fix testing. (#4938) 2018-10-08 07:09:09 +02:00
Chris Hamons c41673dce8
Add mmp error when combining partial static registrar and linking (#4932)
- https://github.com/xamarin/xamarin-macios/issues/4825
2018-10-05 09:43:53 -05:00
Chris Hamons 183cb81583
Disable known failing device tests using xharness (#4884)
- Add the ability to have Build Only tests - https://github.com/xamarin/maccore/issues/1076
- Set mini and the extensions as build only
2018-10-03 08:33:30 -05:00
Sebastien Pouliot 9f23f4b45a
Bump for Xcode 10.1 beta 2 (#4906) 2018-10-03 08:26:31 -04:00
Chris Hamons 8325b083dc
[macos][msbuild] Cache actool results like XI (#4892)
- https://github.com/xamarin/xamarin-macios/issues/3584
- Prevents a 2 second pause on every single launch
- Test added but commented out due to msbuild build machine issue :(
2018-10-02 12:53:19 -05:00
Rolf Bjarne Kvinge 788b63d96f
[NSLayoutManager] Complete bindings for NSLayoutManager. Fixes #4740. (#4853)
Fix numerous issues with NSLayoutManager[Delegate]:

* The classes are available in both AppKit and UIKit, but the bindings are
  duplicated (unsuccessfully) in both appkit.cs and uikit.cs. So create a new
  xkit.cs that is shared between XI and XM, and put a shared version of the
  bindings there.

* Bind everything that hasn't already been bound (or deprecated by Apple).

* Methods that take a nullable NSRangePointer has been bound with three overloads:

	* A protected overridable (exported) method that uses IntPtr.
	* A public method without the parameter.
	* A public method with the parameter typed as 'ref NSRange'.

	This makes sure the native method can be overridden if needed, while at
	the same time making it possible to call without providing the nullable
	parameter.

* Fix numerous ugly bindings:

	* There's a great nint/nuint confusion for parameters referring to
	  'character index' and 'glyph index'. XI seems to prefer nuint, while XM
	  seems to prefer nint. Standardize on nuint, since that's how Apple
	  created them.

	* Many methods have names than sound like Objective-C. Fix them all,
	  either right away when possible, or for XAMCORE_4_0.

	* Several parameter names have been modified to comply with our naming
	  guidelines (no abbreviations).

Fixes https://github.com/xamarin/xamarin-macios/issues/4740.
2018-10-01 14:17:28 +02:00
Aleksey Kliger de86392b6c [mmptest] System.Core doesn't depend on Mono.Posix in 2018-08
System.Core doesn't depend on Mono.Posix anymore since it's using the corefx
implementation of pipes now 0f0e31842f
2018-09-26 12:41:06 -04:00
Chris Hamons 4d7bd304e7
Update tests/README to document XM_TEST_NAME (#4880)
- https://github.com/xamarin/xamarin-macios/issues/3609
2018-09-26 10:24:49 -05:00
Rolf Bjarne Kvinge 8b7db1382d
[xtro] Only return 1 in case of failure in reporter. (#4877)
This solves two problems:

* xharness thinks it crashed if the exit code is neither 0 nor 1, and
  helpfully says so and tries to collect crash reports, which only ends up
  being confusing.

* The exit code is byte-sized on macOS. This means that trying to return 256
  actually returns 0 (success).
2018-09-25 20:32:22 +02:00
Manuel de la Pena ea63e4559c
[CoreMedia] Expose the CMSampleAttachmentKey interface. Fixes #4688 (#4841)
* [CoreMedia] Expose the CMSampleAttachmentKey interface. Fixes #4688

We have an issue when the user wants to use the CMAttachmentSample,
ideally, the user will want to do:

var cameraIntrinsicData = CMAttachmentBearer.GetAttachment(CMSampleAttachmentKey.CameraIntrinsicMatrixKey, sampleBuffer );

Instead of the current workaround:

var att = new CMSampleBufferAttachmentSettings (sampleBuffer.GetAttachments (CMAttachmentMode.ShouldNotPropagate));
var matrix = att.CameraIntrinsicMatrix;

With this push, we can allow the user use the first example provided in
this commit.

Fixes https://github.com/xamarin/xamarin-macios/issues/4688
2018-09-25 16:24:41 +02:00
Rolf Bjarne Kvinge 11d9fe68db
[mtouch/mmp/docs] Improve MT0091 to include how to enable the linker. Fixes #4549. (#4852)
Fixes https://github.com/xamarin/xamarin-macios/issues/4549.
2018-09-21 16:51:23 +02:00
Manuel de la Pena ddb0948376 [Metal] Fixe the size of structures. Fixes #4611 (#4838)
The structs MTLQuadTessellationFactorsHalf and
MTLTriangleTessellationFactorsHalf are wrong as per the header
definition:

```c
typedef struct {
    /* NOTE: edgeTessellationFactor and insideTessellationFactor are interpreted as half (16-bit floats) */
    uint16_t edgeTessellationFactor[4];
    uint16_t insideTessellationFactor[2];
} MTLQuadTessellationFactorsHalf;

typedef struct {
    /* NOTE: edgeTessellationFactor and insideTessellationFactor are interpreted as half (16-bit floats) */
    uint16_t edgeTessellationFactor[3];
    uint16_t insideTessellationFactor;
} MTLTriangleTessellationFactorsHalf;
```

We set the arrays size to be the correct one.

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

* Add tests that ensure that the size of the managed structs is the same
as the native ones.

The values used have been checked against a native app compiled on 32
and 64 (iphone 5 and iphone X).
2018-09-21 09:33:27 -04:00
Aleksey Kliger 8eaf097104 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-09-20 16:40:54 -04:00
Aleksey Kliger 16481d4ec1 Merge remote-tracking branch 'origin/mono-2018-06' into mono-2018-08 2018-09-20 12:09:07 -04:00
Michał Żołnieruk 59a1cfbfa4 Added two missing NSString method bindings for splitting text (#4828)
* Added 2 missing NSString methods bindings (componentsSeparatedByString, componentsSeparatedByCharactersInSet)

* Removed redundant methods API versions, changed method names (to include verb), modified NET types to objC types

* Removed binded methods from sharpie tests

* Add whitespace to conform to coding guidelines.
2018-09-20 16:01:49 +02:00
Vincent Dondain 49ef936701
Merge pull request #4833 from VincentDondain/master-merge-xcode10
Merge branch 'xcode10' into master
2018-09-19 18:19:35 -04:00
Sebastien Pouliot c53b64da1d
Bump for Xcode 10.1 beta 1 (#4836) 2018-09-19 08:56:43 -04:00
Rolf Bjarne Kvinge 7354052e96
[NSLayoutManager] Fix potential NRE in NSLayoutManager.GetGlyphs when one of the parameters is null, (#4832) 2018-09-19 07:37:26 +02:00
Vincent Dondain 2174ec41a2 Merge branch 'xcode10' 2018-09-18 14:12:39 -04:00
Marek Safar ec02eb8f9f Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-09-18 14:41:28 +02:00
Rolf Bjarne Kvinge 8e32ace58e
[Foundation] Bind NSMutableDictionary's addEntriesFromDictionary:. Fixes #4813. (#4819)
Fixes https://github.com/xamarin/xamarin-macios/issues/4813
2018-09-17 16:14:46 +02:00
Manuel de la Pena 422da1f8d4 [Tests] Remove IPV6 flaky test with an ignore. (#4815) 2018-09-14 10:05:17 -04:00
Sebastien Pouliot a94382d880 [xtro] Cleanup non used .todo files (#4811) 2018-09-14 07:38:01 +02:00
Manuel de la Pena eeca0b8780 [Tests] force the IP version to fix tests on bots. (#4805) 2018-09-13 14:13:21 -04:00
Aleksey Kliger fc7cba2ebc Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-09-13 13:37:43 -04:00
Sebastien Pouliot 872ccd5a1d
[watchos][clockkit] Update for GM (#4801) 2018-09-13 05:54:08 -04:00
Sebastien Pouliot 121212ed37 [tests] Fix flaky SecProtocolMetadata.EarlyDataAccepted result (#4804)
Result is mostly, but not always, `false` and that _might_ be due
to how we're testing the API.

ref: https://github.com/xamarin/maccore/issues/1026
2018-09-13 11:41:27 +02:00
Sebastien Pouliot d3decb2117
[ios][coretelephony] Update for GM (#4803) 2018-09-13 03:56:20 -04:00
Chris Hamons c248d05c56 AppKit for Xcode 10 GM (#4795) 2018-09-13 02:45:47 -04:00
Chris Hamons fc70e46947 Add AVFoundation from Xcode 10 GM (#4796) 2018-09-13 01:38:55 -04:00
Vincent Dondain 68f28f680e [metal] Update for Xcode 10 GM (#4802) 2018-09-13 00:37:59 -04:00
Sebastien Pouliot 2be5eec4bf
[macos][adsupport] Update for GM (#4800) 2018-09-13 00:37:33 -04:00
Sebastien Pouliot ae064b89fe
[watchos][watchkit] Update for GM (#4799) 2018-09-12 23:03:19 -04:00
Vincent Dondain 535a1f39c6 [arkit] Update for Xcode 10 GM (#4797) 2018-09-12 22:14:00 -04:00
Sebastien Pouliot aa622c481a
Bump for Xcode10 GM (#4794)
Note that it included 173 new API so xtro files were updated to
- include new API in .todo
- add some backlog to .ignore files
2018-09-12 19:27:11 -04:00
Manuel de la Pena bed3770bae [Tests] Add missing tests for NWProtocolStack and fix NWParameters tests. (#4793) 2018-09-12 19:15:33 -04:00
Sebastien Pouliot 2c8f882896
[security] SecProtocolMetadata update and tests (#4792)
* Avoid `ArgumentNullException` in default/empty `SecProtocolMetadata.PeerPublicKey`
* Add two `SecProtocolMetadata.CreateSecret` API - disabled as the current tests (incomplete?) crash in unit tests
* Add basic unit tests for `[Sec|NW]ProtocolMetadata`
* Update xtro
2018-09-12 13:07:10 -04:00
Rolf Bjarne Kvinge 239d9031d6 [HealthKit] Use generated NSString-backed enums. Fixes #4183. (#4786)
This means less (duplicated) manual code, which means less errors, which also
means we're now getting some new members that previously weren't duplicated
correctly.

Fixes https://github.com/xamarin/xamarin-macios/issues/4183.
2018-09-12 11:23:02 -04:00
Manuel de la Pena e43ca080c7
[Tests] Add missing tests for NWPath. (#4765) 2018-09-12 12:35:40 +02:00
Sebastien Pouliot 6af77f3fbe
[security] Add new SecCertificateCopyKey and SecTrustEvaluateWithError API with unit tests (#4784) 2018-09-11 12:08:05 -04:00
Sebastien Pouliot 46fb26efc8
[security] Fix 'SecCertificate2.Certificate' call and add some tests (#4783) 2018-09-11 08:41:38 -04:00
Sebastien Pouliot 0841238e29
[naturallanguage] Fix helper API for `NLTagger.GetTag` and cleanup/fix other API. Fixes #4774 (#4782)
* Move `NLTag` to static class (instead of enum) since it's not used in API, except along NSString. Fixes https://github.com/xamarin/xamarin-macios/issues/4774
* Add new member to `NLLanguage` to avoid `ArgumentNullException` when it has not been evaludated (API returns `null`), see unit tests;
* Add `[Params]` to `NLTagger` constructors so they are easier to use (no need to create the array in source);
* Fix `GetTag` so it returns (`out`) the `NSRange`, it's natively a `NSRangePointer`;
* Fix `GetTag[s]` API with changes to `NLTag` de-enumification;
* Add unit tests
2018-09-11 08:40:42 -04:00
Bernhard Urban cdbf1227d2 [mtouch] add mixed-mode support (#4751)
* [mtouch] add --interp-mixed option

When enabling this option, mtouch will AOT compile `mscorlib.dll`.  At
runtime that means every method that wasn't AOT'd will be executed by
the runtime interpreter.

* [mtouch] Add support to --interpreter to list the assemblies to (not) interpret.

* [msbuild] Simplify interpreter code to use a single variable.

* Fix whitespace.

* [mtouch] Move mtouch-specific code to mtouch-specific file.

* [msbuild] An empty string is a valid value for 'Interpreter', so make it a non-required property.

* [mtouch] Add sanity check for aot-compiling interpreted assemblies.
2018-09-11 14:06:53 +02:00
Rolf Bjarne Kvinge 93c672fbf1 Disable the GC pump by default. Fixes #4772. (#4781)
Fixes https://github.com/xamarin/xamarin-macios/issues/4772
2018-09-10 16:42:42 -04:00
Sebastien Pouliot f9cc0ec6d6
[msbuild] Set 'CopyNuGetImplementations' to true for app extensions. Fixes #4235 and #4237. (#4512) (#4648) (#4773)
In Xamarin.iOS.Common.targets, just before the _CompileToNative target, we
modify the mtouch references to ensure that we get the lib assemblies for
nugets, and not the ref references:

9e31d07ecc/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets (L784-L791)

This logic removes nuget references, and then re-adds any copy-local dll
references.

This works fine in executable projects, but not in library projects (aka
extensions), because nugets aren't copied for library projects:

cf4b0a12cf/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets (L86)

So we need to set the CopyNuGetImplementations variable to 'true' for our
library projects.

Fixes https://github.com/xamarin/xamarin-macios/issues/4235.
Fixes https://github.com/xamarin/xamarin-macios/issues/4237.

* [tests] Redirect MSBuildExtensionsPath to MSBuildExtensionsPathFallbackPathsOverride when running msbuild for package reference tests.

This fixes a problem where nuget restore would fail for projects with
PackageReferences, because a variable would be empty and msbould would try to
write to /:

    nuget restore ../MyAppWithPackageReference/MyAppWithPackageReference.csproj
    MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/'.
    Restoring packages for /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/msbuild/tests/MyAppWithPackageReference/MyAppWithPackageReference.csproj...
    Committing restore...
    Generating MSBuild file /MyAppWithPackageReference.csproj.nuget.g.props.
    Path / is a directory

This will become unnecessary when PR #4111 is merged.

* Add Xamarin.Mac test showing that fix is not needed (?!?)

* Add AppExtension test with packagereference

* Make extension actually have json code generated

* Fix ProjectTypeGuids of checked in extension projects, as they were not openable in VSfM

* XM extension test now correctly fails

* Now that we have a failing test, fix XM same as rest of platforms

* Disable XM tests due to msbuild redirect sadness

* Disable iOS tests as well due to #4110

* Disable iOS tests by using the Ignore attribute.

Disable tests by using the Ignore attribute, because just commenting out the
TestCase attributes makes the test fail:

    1) NotRunnable : Xamarin.iOS.Tasks.ProjectReferenceTests.BasicTest
       No suitable constructor was found
2018-09-10 08:29:23 -04:00
Rolf Bjarne Kvinge 385592b128
[runtime] Throw a managed exception instead of trying to call a null function pointer if the runtime tries to call a function that has been linked away. (#4770)
* [runtime] Throw a managed exception instead of trying to call a null function pointer if the runtime tries to call a function that has been linked away.

* [tests] Add new file for Xamarin.Mac tests.

* Direct people to file issues in github.
2018-09-10 10:56:02 +02:00
Sebastien Pouliot ce207d263f
Order additional arguments after response file (#4607) (#4612) (#4769)
- https://github.com/xamarin/xamarin-macios/issues/4594
- There were being adding _before_ the response file which meant options that were overriding defaults were not being honored
2018-09-07 08:52:38 -04:00
Rolf Bjarne Kvinge 28347f9167 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-09-06 16:37:37 +02:00
Rolf Bjarne Kvinge bd32b74347
Add support for delegates as return values in protocol members. Fixes #4102. (#4758)
* Add support for delegates as return values in protocol members. Fixes #4102.

This required a few changes:

* The generator now emits the DelegateProxy attribute for property getters in
  protocol interfaces.
* The generator now emits the DelegateProxy attribute in ProtocolMember
  attributes (and the ProtocolMember attribute has been extended with
  additional properties for this purpose).
* The generator now emits the BlockProxy attribute for the parameter in
  property setters.
* The generator now emits the BlockProxy attribute in ProtocolMember
  attributes for property setters.
* The static registrar now emits the metadata token for the
  DelegateProxy.DelegateType property into the generated code so that the
  DelegateProxy attribute itself isn't needed at runtime. This is required
  when the dynamic registrar has been optimized away.

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

* [tests] Update MX4105 test to expect new warnings.
2018-09-06 16:20:23 +02:00
Rolf Bjarne Kvinge 5a75130899
[xharness] Implement getting a reader for captured logs. (#4764)
Fixes an exception that might occur if the code that generates the html report
tries to process such logs (by trying to read them).
2018-09-06 16:13:49 +02:00
Manuel de la Pena 136f994470
[Security] Add missing SecProtocolMetadata missing API. (#4727)
* [Security] Add missing SecProtocolMetadata missing API.

This is a partial commit that contains most of the missing methods for
the handlers API on SecProtocolMetadata. The not added ones are more
complicated and will be added in a later commit.
2018-09-06 12:17:00 +02:00
Rolf Bjarne Kvinge bbb8a41ef8
[xharness] Automatically pass -Os to the native linker when building watchOS extensions with the linker disabled. (#4757)
This works around https://github.com/xamarin/xamarin-macios/issues/4689 for our own unit tests.

This also requires bumping the build timeout, because unfortunately using -Os
makes builds *much, much* slower.
2018-09-06 10:16:53 +02:00
Sebastien Pouliot 0057b7c58e
[imageio] Add availability attributes to `Maker*Dictionary` fields (#4753)
and remove custom test that introspection already cover (based on
the availability attributes)
2018-09-05 13:27:46 -04:00
Sebastien Pouliot d3cf710e15
[coremidi] Enable some API for iOS (only for macOS right now) and simplity xtro files (#4752) 2018-09-05 11:52:04 -04:00
Manuel de la Pena fb9ae90937 [Network] Small change in NWParameters to use a property for RequiredInterface. (#4742)
Added missing tests. Also modified the Interface property in
NWParameters and fix a small typo in NWProtocolMetadata.
2018-09-05 08:07:10 -04:00
Rolf Bjarne Kvinge e5ee9606f0
[tests] Ignore RuntimeTest.MainThreadDeallocationTest if all optimizations are enabled and not linking everything. Fixes #4566. (#4744)
This test contains code that requires the dynamic registrar unless the code is
optimized, and it's only optimized if the assembly is linked, which only
happens if linking all assemblies.

So disable the test if dynamic registrar is removed (which happens when all
optimizations are enabled) and the assembly isn't linked.

Fixes https://github.com/xamarin/xamarin-macios/issues/4566.
2018-09-05 12:47:52 +02:00
Vincent Dondain 982074c42c [tests] Fix System.Net.Http and link sdk tests (#4731)
* [bcl-test] Fix System.Net.Http tests after new NSUrlSession default

The tests did not like the new HttpClient default option. See: 6cfc8b5a60

* [link-sdk] Use https for AsyncTest

Potential fix for https://github.com/xamarin/maccore/issues/977.
2018-09-03 11:08:35 +02:00
Rolf Bjarne Kvinge 1a6e382ee9
[tests] Skip LinkSdkRegressionTest.ForeignKey_650402 on watchOS because it uses features not supported with bitcode. (#4738) 2018-09-03 08:05:30 +02:00
Rolf Bjarne Kvinge f0ac7594a8
[xharness] Add project configurations to run & debug Makefile generation. (#4739)
This also required a minor fix to allow relative directories as the root
directory.
2018-09-03 07:56:44 +02:00
Rolf Bjarne Kvinge ce5331f2c9 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-08-31 17:26:03 +02:00
Rolf Bjarne Kvinge 0a456544b6 [tests] Reference GuiUnit_Net_4_5 using a project reference.
This makes sure GuiUnit is built when the main project is built.
2018-08-31 14:48:15 +02:00
Rolf Bjarne Kvinge bd1ddd5b9d Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-08-31 12:40:37 +02:00
Vlad Brezae d491fd46b6 Assembly.LoadFile accepts only absolute path 2018-08-30 09:24:06 +02:00
Vincent Dondain 9754d505ff [ObjCRuntime] Add missing .ctor to 'Class' (#4726)
- Fixes #4441: [generator] Binding with return value of Class [] do not do the right thing
  (https://github.com/xamarin/xamarin-macios/issues/4441)
- Turns out the logic to put INativeObjects into NSArrays was already in place. We simply needed to add the missing (IntPtr handle, bool owns) overload to `Class`.
- Uncommented AppKit `registeredImageRepClasses` since it was using `Class []`. Tested locally and it works fine.
- Reimplemented `Foundation`'s `NSSecureUnarchiveFromDataTransformer` and its test which were also using `Class []`.
2018-08-29 16:23:36 -04:00
Vincent Dondain 6cfc8b5a60
[msbuild] Change MtouchHttpClientHandler default (#4172)
If the Http Client value isn't set in the csproj, we should default to `NSUrlSessionHandler` which is also what the Xamarin.iOS Analysis rules try to enforce.
2018-08-29 15:16:19 -04:00
Manuel de la Pena bae5a202b4 [Network] Add missing handlers on NWPathMonitor. (#4722) 2018-08-29 14:20:32 -04:00
Sebastien Pouliot 807efadf38
[coreimage] Add generator support for CIVector[] and enable it in CIMeshGenerator. Fix #4226 (#4715) 2018-08-29 13:29:34 -04:00
Rolf Bjarne Kvinge 6f686a7729
[xharness] Don't try to run aggregated tasks when none of the contained tasks built successfully. (#4706)
Fixes this HarnessException when all simulator tasks for an aggregated run
simulator task fails to build (i.e. there is nothing to run):

    Harness exception for 'Tests for iOS_Unified32': System.InvalidOperationException: Sequence contains no elements
        at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0000b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-04/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/First.cs:16
        at xharness.AggregatedRunSimulatorTask+<ExecuteAsync>d__9.MoveNext () [0x00312] in /work/maccore/master/xamarin-macios/tests/xharness/Jenkins.cs:3582
        --- End of stack trace from previous location where exception was thrown ---
        at xharness.TestTask+<RunInternalAsync>d__92.MoveNext () [0x00113] in /work/maccore/master/xamarin-macios/tests/xharness/Jenkins.cs:2352
2018-08-29 17:42:28 +02:00
Sebastien Pouliot c1593fbd1f
[tests][intro] Adjust introspection to run without failure on iOS 6.1.6 (#4720) 2018-08-29 09:10:03 -04:00
Sebastien Pouliot bc2dfe335f
[tests] Add missing availability attribute and adjust tests to run on iOS 7 devices. Fix #4437 (#4719)
Fix https://github.com/xamarin/xamarin-macios/issues/4437 where the Mac check
always returns `true` on iOS so the `||` condition was always `true`.
2018-08-29 09:09:43 -04:00
Marek Safar c844903be5 Merge remote-tracking branch 'origin/master' into mono-2018-06 2018-08-29 14:52:33 +02:00
Vlad Brezae 6fdcb8d036 Assembly.LoadFile accepts only absolute path 2018-08-29 12:28:42 +03:00
Manuel de la Pena 2838b988b9 [Network] Update to Xcode 10 beta 3. (#4686)
Adds the new functions added in beta 3 and cleans some of the xtro
files.
2018-08-28 15:11:25 -04:00
Rolf Bjarne Kvinge 41c719d2ab
[xharness] Fix failure message when nunit test times out. (#4708)
Fixes an issue where MTouch test would seemingly fail immediately:

    Failure: Execution timed out after 0 minutes.

when it's just saying that it failed out after [2 hours and] 0 minutes.

Fix it by showing the total number of minutes in the failure message.
2018-08-28 17:18:02 +02:00
Sebastien Pouliot e407a403d2
Merge pull request #4672 from spouliot/xcode10-xtro-fix-4407
[xtro] Fix xtro to report some missing API. Fix #4407
2018-08-28 10:16:30 -04:00
Rolf Bjarne Kvinge bf4015bfbd
[xharness] Detect another scenario where failing to pair devices, and try again with a new watch device. Fixes maccore#961. (#4702)
Fixes https://github.com/xamarin/maccore/issues/961.
2018-08-28 07:41:22 +02:00
Sebastien Pouliot 115f6fbaa7 [xtro] Update API information for Intents 2018-08-27 14:34:34 -04:00
Rolf Bjarne Kvinge 144ebda1e6
[tests] Update MT4134 with new iOS 12 frameworks. Fixes maccore#954. (#4701)
Fixes https://github.com/xamarin/maccore/issues/954.
2018-08-27 16:44:20 +02:00
Sebastien Pouliot 0f888f0c66 [xtro][foundation] Ignore 'new' missing API found by xtro 2018-08-27 08:51:51 -04:00
Sebastien Pouliot 45221e68e3 [xtro][macos] Ignore, at least temporarily, some missing API found by (fixed) xtro 2018-08-27 08:42:13 -04:00
Sebastien Pouliot c244b5cafb [mediaplayer] Add missing API found by xtro 2018-08-24 16:05:43 -04:00
Sebastien Pouliot 9697898932 [xtro][notificationcenter] Annotate missing API found by xtro 2018-08-24 14:44:37 -04:00
Sebastien Pouliot b6f2058a13 [watchkit] Comment missing API found by xtro 2018-08-24 11:25:43 -04:00
Sebastien Pouliot 8dd288925b [uikit] Fix/comment missing API reported by xtro 2018-08-24 11:24:47 -04:00
Rolf Bjarne Kvinge 5da88bfbc7
[mmp] Show an error if trying to build a 32-bit app with Xcode 10. Fixes #4569. (#4684)
Fixes https://github.com/xamarin/xamarin-macios/issues/4569.
2018-08-24 12:28:10 +02:00
Sebastien Pouliot b2677889ca [xtro][vision] Ignore VNRequest::init since it's an abstract type and not a designated initializer 2018-08-23 15:51:27 -04:00
Sebastien Pouliot e970cd75b4 [xtro][modelio] Ignore a deprecated API (not needed) 2018-08-23 15:28:52 -04:00
Sebastien Pouliot 707334f95e [spritekit] Enable missing API in watchOS (found by xtro) 2018-08-23 15:26:44 -04:00
Sebastien Pouliot 0e785e3668 [coredata] NSCoreDataCoreSpotlightDelegate is 64bits only
causing
```
Introspection.MacApiCtorInitTest.ApiCtorInitTest.DefaultCtorAllowed: 1 potential errors found in 925 default ctor validated:
Default constructor not allowed for CoreData.NSCoreDataCoreSpotlightDelegate : Could not create an native instance of the type 'CoreData.NSCoreDataCoreSpotlightDelegate': the native class hasn't been loaded.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
```
when running intro for mac unified 32 bits
2018-08-23 15:23:26 -04:00
Manuel de la Pena c60397c984
[Gamekit] Re-enable introspection tests in the skipped selectors. (#4682) 2018-08-23 17:16:12 +02:00
Sebastien Pouliot ffaa5d61ce [xtro][mapkit][watchos] Ignore MKErrorDomain since the enum for errors is not available 2018-08-23 10:59:13 -04:00
Sebastien Pouliot 29f7fbadc7 [xtro][iads] Comment category/static members bound manually 2018-08-23 10:51:37 -04:00
Sebastien Pouliot 0dc94fd73c [gamekit] Ignore some additional (deprecated) API on watchOS 2018-08-23 10:44:13 -04:00
Sebastien Pouliot d0ecdc9c42 [corewlan] Add missing API found by xtro 2018-08-23 10:21:27 -04:00
Sebastien Pouliot 5adbf19400 [coreimage] Add missing API found by xtro 2018-08-23 09:47:05 -04:00
Sebastien Pouliot 216966ee87 [coredata] Add some missing API spotted by xtro 2018-08-22 16:51:24 -04:00
Sebastien Pouliot beeb0021c5 [coreanimation][macos] Update for xtro 2018-08-22 15:46:26 -04:00
Sebastien Pouliot 387e45093d [cloudkit] Add back (an updated) watchOS-CloudKit.ignore 2018-08-22 15:42:55 -04:00
Sebastien Pouliot b348cc56b6 [contacts] Add comment why 'CNPhoneNumber::init' is not bound (since it's reported by xtro) 2018-08-22 15:42:07 -04:00
Sebastien Pouliot 10d13cc986 [cloudkit] Review missing 'init' on some types, in particular allow them outside watchOS 2018-08-22 14:56:51 -04:00
Rolf Bjarne Kvinge 2ba60926a5
[introspection] Fix typo test on Mojave. (#4677)
Fixes:

    [FAIL] Typo in METHOD name: TcpSetDisableAckStretching - Ack, Type: NWProtocolOptions
    [FAIL] Typo in METHOD name: get_DrmProtected - Drm, Type: ITLibMediaItem
    [FAIL] Typo in FIELD name: DistinguisedKind - Distinguised, Type: ITLibPlaylistProperty
    [FAIL] Typo in FIELD name: IsDrmProtected - Drm, Type: MediaItemProperty
2018-08-22 16:54:43 +02:00
Rolf Bjarne Kvinge ea4909034b
[xharness] Be resilient when trying to copying contents from an inexistent file. (#4676)
Should fix this (or at the very least not prevent xharness from writing out the report):

    21:07:30.3947450 Failed to write log: System.IO.FileNotFoundException: Could not find file '/Users/builder/Library/Logs/CoreSimulator/6DA2ED3C-B1FA-4D0B-9DD6-113E5F9A1381/system.log'.
    File name: '/Users/builder/Library/Logs/CoreSimulator/6DA2ED3C-B1FA-4D0B-9DD6-113E5F9A1381/system.log'
        at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00207] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/__error.cs:188
        at System.IO.FileInfo.get_Length () [0x00038] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/fileinfo.cs:171
        at xharness.CaptureLog.Capture () [0x0004a] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/xharness/Log.cs:334
        at xharness.CaptureLog.Flush () [0x00008] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/xharness/Log.cs:373
        at xharness.Jenkins.GenerateReportImpl (System.IO.Stream stream, System.IO.StreamWriter markdown_summary) [0x017db] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/xharness/Jenkins.cs:2012
        at xharness.Jenkins.GenerateReport (System.Boolean only_if_ci) [0x00075] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/tests/xharness/Jenkins.cs:1313
2018-08-22 16:54:19 +02:00
Sebastien Pouliot 19683847c2 [avfoundation] Add missing API (previously missed by xtro) 2018-08-22 09:14:10 -04:00
Sebastien Pouliot 885ee6f3c1 [corebluetooth] Update xtro (we provided something else, enabling events) 2018-08-21 16:59:51 -04:00
Sebastien Pouliot 5ee10601d9 [xtro] Add new todo 2018-08-21 16:04:28 -04:00
Sebastien Pouliot b8e50117f9 [xtro] Remove duplicated filter method from reporter and share the new common one 2018-08-21 16:03:37 -04:00
Sebastien Pouliot 75b146b9d2 [xtro] Update u2todo not to create todo files for non supported frameworks 2018-08-21 15:42:36 -04:00
Sebastien Pouliot b8d1a8739e [xtro] Skip '+type:new' selectors, we do not bind them 2018-08-21 14:21:12 -04:00
Sebastien Pouliot 4b7d631dba [xtro] Fix how we get selectors so parameter-less are not skipped 2018-08-21 14:20:25 -04:00
Rolf Bjarne Kvinge 1d0e058636
[xharness] Replace existing content in TCC.db. Might fix maccore#951. (#4666)
There seems to be an issue where adding stuff to the TCC.db might fail
partially. In that case we try again, but we try to add every entry once more,
which now might fail due to existing entries.

So always replace when adding new entries in TCC.db. Also dump the database
when done to help debugging if it turns out this doesn't fix maccore#915.

Might fix https://github.com/xamarin/maccore/issues/951.
2018-08-21 19:11:23 +02:00
Sebastien Pouliot d99be7a03e
Merge d15-8 into xcode 10 2018-08-21 09:29:35 -04:00
Sebastien Pouliot d9edf5928d
[avfoundation] Deprecate 'AVMediaTypeTimedMetadata' (#4655)
AVMediaTypeTimedMetadata has been obsoleted since iOS 6 but was totally
removed (returns null) in iOS 12.

Adjust test and provide a (better) deprecation warning for developers.
2018-08-21 08:57:44 -04:00
Manuel de la Pena 92d6e94707 [NaturalLanguage] Change return type to use double instead on nuint. Fixes #4642 (#4654)
The docs or headers do not specify the exact type. Using double to be
sure.

Issue: https://github.com/xamarin/xamarin-macios/issues/4642
2018-08-20 21:44:24 -04:00
Sebastien Pouliot 213590b3c0
[tests] Re-enable AVPlayerViewController.PrepareForPrerollAds test (broken in early betas) (#4656) 2018-08-20 21:15:58 -04:00
Manuel de la Pena 82dfd4fb59 [AppKit] Xcode 10 beta 6 support. (#4653) 2018-08-20 18:00:32 -04:00
Sebastien Pouliot c7e791a514
[tests] Re-enabled CIBarcodeGenerator tests (failed in earlier betas) (#4651) 2018-08-20 15:26:59 -04:00
Manuel de la Pena c5974d94ef [CarPlay] Update for Xcode 10 beta 6. (#4650) 2018-08-20 14:49:02 -04:00
Rolf Bjarne Kvinge 5995833903
[tests] Improve F# test's assert message. (#4649)
Before in case of failure:

    [FAIL] FSharpTest.SprintfTest :   Expected: True
        But was:  False
    	  at fsharp.FSharpTest.SprintfTest () [0x00052] in /work/maccore/mono-master/xamarin-macios/tests/fsharp/FSharpTests.fs:34
    	  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)

After in case of failure:

    [FAIL] FSharpTest.SprintfTest :   String lengths are both 24. Strings differ at index 10.
      Expected: "1111 2222 3333 4444 5555"
      But was:  "1111 2222 4444 3333 5555"
      ---------------------^
    at fsharp.FSharpTest.SprintfTest () [0x00044] in /work/maccore/mono-master/xamarin-macios/tests/fsharp/FSharpTests.fs:33
    at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
2018-08-20 19:06:01 +02:00
Vincent Dondain c2a993e4c9
[IntentsUI] Update for Xcode 10 beta 6 (#4640) 2018-08-20 09:20:01 -04:00
Rolf Bjarne Kvinge a619226b36
[msbuild] Set 'CopyNuGetImplementations' to true for app extensions. Fixes #4235 and #4237. (#4512)
* [msbuild] Set 'CopyNuGetImplementations' to true for app extensions. Fixes #4235 and #4237.

In Xamarin.iOS.Common.targets, just before the _CompileToNative target, we
modify the mtouch references to ensure that we get the lib assemblies for
nugets, and not the ref references:

9e31d07ecc/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets (L784-L791)

This logic removes nuget references, and then re-adds any copy-local dll
references.

This works fine in executable projects, but not in library projects (aka
extensions), because nugets aren't copied for library projects:

cf4b0a12cf/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets (L86)

So we need to set the CopyNuGetImplementations variable to 'true' for our
library projects.

Fixes https://github.com/xamarin/xamarin-macios/issues/4235.
Fixes https://github.com/xamarin/xamarin-macios/issues/4237.

* [tests] Redirect MSBuildExtensionsPath to MSBuildExtensionsPathFallbackPathsOverride when running msbuild for package reference tests.

This fixes a problem where nuget restore would fail for projects with
PackageReferences, because a variable would be empty and msbould would try to
write to /:

    nuget restore ../MyAppWithPackageReference/MyAppWithPackageReference.csproj
    MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/'.
    Restoring packages for /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/msbuild/tests/MyAppWithPackageReference/MyAppWithPackageReference.csproj...
    Committing restore...
    Generating MSBuild file /MyAppWithPackageReference.csproj.nuget.g.props.
    Path / is a directory

This will become unnecessary when PR #4111 is merged.

* Add Xamarin.Mac test showing that fix is not needed (?!?)

* Add AppExtension test with packagereference

* Make extension actually have json code generated

* Fix ProjectTypeGuids of checked in extension projects, as they were not openable in VSfM

* XM extension test now correctly fails

* Now that we have a failing test, fix XM same as rest of platforms

* Disable XM tests due to msbuild redirect sadness

* Disable iOS tests as well due to #4110

* Disable iOS tests by using the Ignore attribute.

Disable tests by using the Ignore attribute, because just commenting out the
TestCase attributes makes the test fail:

    1) NotRunnable : Xamarin.iOS.Tasks.ProjectReferenceTests.BasicTest
       No suitable constructor was found
2018-08-20 13:43:48 +02:00
Rolf Bjarne Kvinge da436c479b [msbuild] Exclude some code in Metal tasks when building the tests.
Exclude some code in Metal tasks when building the tests to avoid the
significant complexity it would be to add the required source files to the
mtouch test project.
2018-08-20 12:59:55 +02:00
Rolf Bjarne Kvinge 1bbfbd26ff
[F# tests] Default to LinkSdk for device builds. (#4643)
Makes device builds (and uploads) much faster.

I've checked all other tests, and this was the only one not using LinkSdk
(except tests that don't on purpose, such as linker tests).
2018-08-20 07:42:32 +02:00
Rolf Bjarne Kvinge 5f4327ab0f
[CoreGraphics] Fix CGFunction to work after being disposed. (#4644)
We have a test for CGFunction, and in iOS 12 the behavior changed where
previously the CGFunction was invoked immediately when rendering, it's now
retained and only called later.

This is troublesome for the test, because it disposes the managed CGFunction
when it thinks it's completed. Since the function is invoked way later, the
test now crashes. Ops.

The obvious fix is to change the test to dispose the CGFunction later. This
falls flat when finding out that "later" is undetermined. Native code retains
the CGFunction, and can do whatever it wishes with it until it's released, and
there's no way to know when that is.

OK: what about not disposing the CGFunction, and letting the GC do its job?
This also falls flat, because there's a circular reference between the native
CGFunction and the managed wrapper, preventing any of them from being released
automatically by the GC. The only way to break the circular reference is to
dispose the managed wrapper.

So, can we fix the circular reference? Unfortunately not, because we can't
monitor the native CGFunction's retain count, which is required in order to
switch the native->managed link between weak and strong according to the
retain count.

This leaves one solution (that I could come up with at least): make sure
everything works fine after disposing the managed wrapper.

This involves a few things:

* Only break the native->managed connection (the 'gch' GCHandle) when the
  native CGFunction is freed. This is accomplished by using the API provided
  by Apple for exactly that purpose (the 'release' callback field in the
  'CGFunctionCallbacks' struct).

* Use a static variable for the 'CGFunctionCallback' struct and its contents.
  This solves another potential problem: the GC could have collected the
  delegate to the 'EvaluateCallback' function at any point.

* Don't null out the 'evaluate' delegate in Dispose. This leaves the user with
  no way to break a potential circular reference through that delegate (since
  it will never be null), so provide a property that makes it possible for
  users to explicitly null out the delegate ('EvaluateFunction').

* Only call the 'evaluate' callback if it's not null.

This also has the additional advantage that test (and any customer code
running into the same issue) works without modifications.
2018-08-20 07:40:54 +02:00
Sebastien Pouliot b5ef7b134b
Merge branch 'xcode10' into xcode10-rebase-15.8 2018-08-17 14:53:03 -04:00
Vincent Dondain c5169120bf
[msbuild] Update 'metal' binary path for Xcode 10 (#4601)
- Fixes #4576: [xcode10] 'Metal Game' fails to build. (https://github.com/xamarin/xamarin-macios/issues/4576)

In Xcode 10 Apple moved the "metal" binary from `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/usr/bin/metal` to `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal`.
2018-08-17 10:24:02 -04:00
Rolf Bjarne Kvinge 4d30955c7a [tests] Remove some 32-bit XM tests.
32-bit macOS is dying, and keeping these tests running is not worth the effort.
2018-08-17 12:49:41 +02:00
Rolf Bjarne Kvinge c94553f253
[tests] Re-add [Test] attribute accidentally removed in 3f16223deb. (#4626) 2018-08-17 11:07:18 +02:00
Vincent Dondain 185ccbb0ad [xtrp] Fix merge issues
- Re-added unclassified to todo.
2018-08-16 22:57:32 -04:00
Rolf Bjarne Kvinge 965e1f7bcc Merge remote-tracking branch 'origin/xcode10' into xcode10-rebase-15.8 2018-08-16 17:09:30 +02:00
Sebastien Pouliot 878fdffea7
[foundation] Update for beta 6 (#4625) 2018-08-15 21:41:03 -04:00
Sebastien Pouliot 605b992c62
Bump for beta 6 (#4613) 2018-08-15 13:23:31 -04:00
Vincent Dondain 3548c44782
[metal] Update for Xcode 10 beta 1, 2, 3 & 4 (#4562) 2018-08-15 10:09:23 -04:00
Vincent Dondain eec95e881c Merge branch 'd15-8' into xcode10-rebase-15.8 2018-08-13 21:04:56 -04:00
Chris Hamons ecfc5ce917
Order additional arguments after response file (#4607)
- https://github.com/xamarin/xamarin-macios/issues/4594
- There were being adding _before_ the response file which meant options that were overriding defaults were not being honored
2018-08-13 13:09:31 -05:00
Manuel de la Pena 41fe079f9b [Generator] Ensure the correct error is raised when an Export is missing on a Property. (#4604)
The generator had a small bug in which we would get a NRE when a
property missed a Export attribute and had no WrapAttr. The issue is due
to the fact that an || is being used and does not shortcut when the
attribute is missing. In that case, the first Get check would pass and a
second attempt would happen with the set. In the case the set is missing,
we would get a NRE. The correct way is to ensure that we do have the get
and the set BEFORE the attr is checked.

The added test shows an example of the issue.
2018-08-09 16:06:14 -04:00
Sebastien Pouliot f471f9b591
[security] Update for beta 5 (only) change (#4600) 2018-08-09 10:12:07 -04:00
Sebastien Pouliot 0b7265193a
[coreservices] Update up to beta 5 (#4590)
Also avoid creating NSString instances for hidden constants where
only the handle is every used.
2018-08-08 12:38:03 -04:00
Manuel de la Pena 7c7f46da28
[iTunesLibrary] Xcode 10 beta 3 support. (#4462) 2018-08-08 16:34:16 +02:00
Manuel de la Pena 82d21bc211
[Tests] Fix failing tests on iOS 8. Fixes #4437 (#4592)
Some of the tests fail because the assert is looking at the wrong iOS
version. Looking at the API definitions:

* UIStackView - Available in iOS 9, not iOS 8.
* AudioServicesPlayAlertSoundWithCompletion - Available in iOS 9, not
iOS 8.

All the other tests reported in the issue pass.

Issue: https://github.com/xamarin/xamarin-macios/issues/4437
2018-08-08 16:14:04 +02:00
Miguel de Icaza 8960cc0022
Merge pull request #4251 from migueldeicaza/xcode10-network
[Network, Security] Bindings for Network, Security, DispatchIO and some classes needed to port samples
2018-08-08 09:55:06 -04:00
Sebastien Pouliot 4a9b7f1f22
[tests][xtro] Merge MPSRayIntersector results into parent MetalPerformanceShaders framework (#4589) 2018-08-08 08:52:04 -04:00
Manuel de la Pena f4cd485b38 [ImageIO] Add support for Xcode 10 beta 5. (#4587) 2018-08-07 21:06:40 -04:00
Sebastien Pouliot 805c65ac98
[coreanimation] Add new API up to b5 (#4571)
Also a small generator change to allow `CGColorSpace` use inside
strong dictionaries.
2018-08-07 13:49:30 -04:00
Chris Hamons 86e97b101b More CoreFoundation SOCKS APIs to ignore backlog, they are ancient but just showing up in headers (#4572) 2018-08-04 00:25:34 -04:00
Sebastien Pouliot 7e770663d9
[audiotoolbox][tvos] Remove AudioFileReadPackets symbol (#4570)
The public API was removed a long time ago (with XAMCORE_2_0) but
the p/invoke was still present in the platform assemblies.

Since tvOS requires bitcode this can cause a problem when linking
natively since a direct call won't be possible. That would only
happen if the symbol is removed (from the binary, not just the
headers) and if the managed linker is not enabled (otherwise it
will always be removed).
2018-08-04 00:24:54 -04:00
Manuel de la Pena 3613803471 [CoreMedia] Add Xcode 10 beta 5 support. (#4567) 2018-08-04 00:24:24 -04:00
Manuel de la Pena b47305ede2 [CoreImage] Add Xcode 10 beta 5 support. (#4564) 2018-08-03 17:06:45 -04:00
Rolf Bjarne Kvinge 9d65e42f58 Fix testing 32-bit XM apps. Fixes maccore issue 884. (#4555)
* [jenkins] Only XM apps with variations are Classic/32-bit apps, so adjust ignore logic accordingly. Fixes maccore issue 884.

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

* [mmp] Fix passing -stdlib=libc++ to clang.

* [tests] Fix 32-bit XM issues.

* [xharness] Add support for building 32-bit XM apps by using Xcode 9.4.

* [xharness] Since xharness can now build 32-bit mac apps, enable them by default.

* Remove debug code.

* Remove unused variable.
2018-08-03 17:06:23 -04:00
Rolf Bjarne Kvinge 5400e01178
[xtro] Make 'classify' faster by running it for each platform in parallel with eachother. (#4563) 2018-08-03 16:20:00 +02:00
Rolf Bjarne Kvinge 698441e4a2 Update xtro todos. 2018-08-03 10:38:24 +02:00
Rolf Bjarne Kvinge 16f8032616 Merge remote-tracking branch 'origin/xcode10' into xcode10-network 2018-08-03 10:32:10 +02:00
Rolf Bjarne Kvinge c77f191064 [CoreGraphics] Add missing API added in Xcode 10 beta 1. (#4547)
* [CoreGraphics] Add CGPDFArray.Get* overloads that take a nint index, since the CGPDFArray.Count property returns nint.

This makes the following code work:

    for (var i = 0; i < array.Count; i++)
    	array.GetInt (i, ...)

* Don't add [MonoPInvokeCallback] to Mac code.

* [CoreGraphics] Rename CGPDFArray.ApplyBlockCallback to ApplyCallback.

Since the fact that the method is implemented using a block is not relevant
for managed code.

This also makes the method named like an equivalent method in CGPDFDictionary.

* [CoreGraphics] Change CGPDFArray.Apply to take an 'object' as the info parameter instead of IntPtr.

This makes it nicer for managed code.

* [CoreGraphics] CGPDFArray.Apply: resolve the iterated object to the actual CGPDFObject type.

* [CoreGraphics] Add an CGPDFDictionary.Apply overload that resolves the iterated object to the actual CGPDFObject type.

This method was previously only available in Classic, so I just reintroduced
it with a few changes to make the API nicer (which isn't a breaking change
since we're not building Classic anymore).

* [tests] Add test for CGPDF types.

* [tests] Don't run the new tests unless the SDK was part of Xcode 10
2018-08-02 20:30:41 -04:00
Vincent Dondain f3b5b81163 [arkit] Add ARAnchorCopyingCtorTest (#4551)
- Fixes https://github.com/xamarin/xamarin-macios/issues/4497.
2018-08-02 20:29:50 -04:00
Manuel de la Pena ab64222d5b [AudioToolbox] Add Xcode 10 beta 5 support. (#4559) 2018-08-02 20:29:15 -04:00
Chris Hamons abcce7c2b9 Add missing AppKit Xcode 10 bindings (#4546) 2018-08-02 16:32:30 -04:00
Manuel de la Pena bf3d722360 [UIKit] Add support for Xcode 10 beta 5. (#4556) 2018-08-02 16:31:35 -04:00
Manuel de la Pena a2bfd0b633 [AVFoundation] Add support for Xcode 10 beta5. (#4554) 2018-08-02 16:15:16 -04:00
Rolf Bjarne Kvinge 04b181f574 [tests] Adjust the MT5211 test according to modified ld output. Fixes maccore issue 897. (#4557)
Fixes https://github.com/xamarin/maccore/issues/897.
2018-08-02 15:42:17 -04:00
Rolf Bjarne Kvinge bb631d36bd Update xtro definitions. 2018-08-02 17:16:00 +02:00
Chris Hamons 42bdecda4d Ignore instead of todo CoreWLand bindings uncovered by 24f865655f (#4552) 2018-08-02 09:16:48 -04:00
Rolf Bjarne Kvinge 9946fbd4dd [tests] Adjust the MT0137 test for mcs change in behavior.
Starting with mono 5.16 mcs will now add assembly references when the assembly
is only used in attributes (this was already the case for csc in both 5.14 and
5.16, so it seems to be a compatibility change).

Adjust the MT0137 test accordingly.
2018-08-02 11:11:02 +02:00
Rolf Bjarne Kvinge 8040f2351d introspection: Adjust CMAttachmentTest for new CoreFoundation types. 2018-08-02 10:23:24 +02:00
Rolf Bjarne Kvinge bdb3ff9049 Update xtro definitions. 2018-08-02 09:59:08 +02:00
Marek Safar fdf3536170 Merge branch 'master' into mono-2018-06 2018-08-01 22:17:19 +02:00
Chris Hamons e77560fff3
Xcode 10 Beta 5 AppKit (#4539)
- Mark NSBindingSelectionMarker as 10.14+ and note in XAMCORE_4_0 future usages
2018-08-01 12:31:20 -05:00
Rolf Bjarne Kvinge 7b4654ba29 Update xtro todos 2018-08-01 17:11:07 +02:00
Rolf Bjarne Kvinge 05340241ed Merge remote-tracking branch 'origin/xcode10' into xcode10-network 2018-08-01 17:10:36 +02:00
Manuel de la Pena 00eedb9381 [Network] Ensure NWAdvertiseDescriptor does take the type when exposing
a service.

As per documentation the NWAdvertiseDescriptor CreateBonjourService
should always get a type. Added the change which fixes the introspection
failures.
2018-08-01 16:55:06 +02:00
Alex Soto b808213465 [Vision] Update bindings to Xcode 10 beta 1, nothing in beta 2 (#4321) 2018-08-01 10:50:13 -04:00
Miguel de Icaza 49bb4aa0ca Xcode10 CoreGraphics B1-B5 (#4198)
* [CoreGraphics] Add first batch of Xcode10 APIs, added an enum that we did not surface before

* [xcode10] CoreGraphics support

* Fix whitespace/formatting and add comma after last enum value.

* Make CFPropertyList follow normal INativeObject creation pattern.

* Make CFPropertyList.AsData return the error as a tuple.

* Fix CFPropertyList.AsData to not leak.

* CFPropertyList.Value: use Runtime.GetNSObject so that we don't accidentally create duplicate wrappers for the same native object.

* [CoreGraphics] Update to beta 5.

* Update xtro definitions.

* Add tests.

* Don't compare value type with null.

* Use PascalCase for named return tuples.

* [CoreFoundation] Make CFPropertyList enums native and fix code accordingly.

* [tests] Fix fetching 64-bit int to actually fetch a 64-bit int and not a nint.

* [tests] Teach introspection's ApiCMAttachmentTest about CFPropertyList.
2018-08-01 16:25:40 +02:00
Sebastien Pouliot 745ac8f1db
[foundation] Override Message property in NSErrorException. Fixes #4133 (#4176)
The default `Message` property is not every helpful. Better information
is available inside the `Error` property but it's not general (nor cross
platform) when dealing with exception.

Include unit tests (on an existing test checking NSError values)

https://github.com/xamarin/xamarin-macios/issues/4133
2018-08-01 09:18:04 -04:00
Vincent Dondain 52aae1858b [homekit] Remove export for 'RemoveUser' (iOS prohibited) (#4542)
We want to remove the native API because it's prohibited and Apple could reject apps with it. Therefore we exposed empty stubs to avoid breaking the API.
2018-08-01 08:13:49 -04:00
Sebastien Pouliot 7f30793364
[scenekit] Update for beta 5 (#4541) 2018-08-01 08:13:21 -04:00
Vincent Dondain 1ffa311117 [coreml] Update for Xcode 10 beta 5 (#4534) 2018-07-31 21:50:40 -04:00
Sebastien Pouliot c682959deb
[tvos][tvuikit] Update for beta 5 (#4533) 2018-07-31 21:50:10 -04:00
Vincent Dondain 021be4890b [modelio] Update for Xcode 10 beta 5 (#4536) 2018-07-31 21:25:30 -04:00
Sebastien Pouliot c987e054e3
[passkit] Update for beta 5 (#4537) 2018-07-31 21:22:30 -04:00
Vincent Dondain 839c26e21d [arkit] Add ARAnchorCopying protocol (#4523)
Even if empty this protocol will help with tests and subclasses.
2018-07-31 21:20:16 -04:00
Chris Hamons 65b1d0cfb5
AppKit 10b4 (#4488) 2018-07-31 15:17:25 -05:00
Sebastien Pouliot fe159bda2d
Update for xcode 10 beta 5 (#4527) 2018-07-31 08:49:19 -04:00
Rolf Bjarne Kvinge 2e2fe92986 [tests] Change the MT4134 test to only expect device builds to fail. (#4526)
As an unintended side effect of 215ab7fc1a, we
stopped reporting MT4134 errors ("Your app is using framework X, which means
you must update your Xcode") for simulator builds.

This can be either good (people's simulator builds now succeed when the
previously didn't) or bad (people's simulator builds don't always match their
device builds, since they may still get the MT4134 error for device builds).

This patch assumes we want the improved simulator builds, and adjusts the
corresponding test accordingly.
2018-07-30 21:59:48 -04:00
Vincent Dondain a9229354d2 [xtro] Update makefile to call u2todo.cs (#4529) 2018-07-30 21:39:56 -04:00
Rolf Bjarne Kvinge 2e75028fc0 [tests] Set XamarinMacFrameworkRoot as an environment variable when running MSBuild tests.
Set XamarinMacFrameworkRoot as an environment variable when running MSBuild
tests, because we have command-line tools that needs it (bgen), and only
passing it as a MSBuild parameter doesn't reach the environment (and any
subprocesses).
2018-07-30 16:00:55 +02:00
Vincent Dondain 53d7e23c46 [arkit] Introduce runWithConfiguration: (#4521)
The comment: "'runWithConfiguration:' selector marked as unavailable in Xcode 9 beta 5"
was *wrongly* referencing 'NS_SWIFT_UNAVAILABLE("Use run(_:options:) instead")'. However that applies to swift and not objective-c, this selector is valid and lets users skip the options.

Note: tested with real-world ARKit app.

* Add None to ARSessionRunOptions
2018-07-30 08:25:57 -04:00
Rolf Bjarne Kvinge fd05ba6a79
[mtouch] Show warnings when we can't find referenced assemblies. (#4511)
* [mtouch] Show warnings when we can't find referenced assemblies.

This would have helped track down #4235.

* Improve MT0137 warning to indicate the type of the attribute causing the warning.
2018-07-30 10:55:23 +02:00
Miguel de Icaza b8cf7b2bd8 Merge remote-tracking branch 'remotes/origin/xcode10' into xcode10-network 2018-07-27 13:45:55 -04:00
Rolf Bjarne Kvinge 06d74108af Remove debug spew. 2018-07-27 17:41:47 +02:00
Rolf Bjarne Kvinge 50e05547aa [xharness] Process Import elements, but don't add LogicalName to them. 2018-07-27 17:40:29 +02:00
Rolf Bjarne Kvinge 215ab7fc1a
[mtouch] Unify code to detect and handle frameworks that aren't supported in the simulator. Fixes #4422. (#4510)
Unify the code to detect frameworks that aren't supported in the simulator (we
had switches in two places, now this data is stored per framework).

Also remove some of the Metal frameworks for some of the platforms from these
lists (since they're now available in the simulator in some cases), which
fixes #4422.

It also seems CoreAudioKit is now available in the simulator (it wasn't in the
first Xcode 7 beta, but apparently added in a later beta. This made our
exclusion incorrect, but we never noticed).

https://github.com/xamarin/xamarin-macios/issues/4422
2018-07-27 16:30:08 +02:00
miguel 70ffd63b05 Blindly try to get this to build 2018-07-27 08:49:07 -04:00
Sebastien Pouliot 3bb8f82e19
[coreimage] Add new CISaliencyMapFilter from beta 4 (#4513) 2018-07-27 08:27:23 -04:00
Rolf Bjarne Kvinge afcad3b4ba [xharness] Set the right variable to point msbuild to our locally built xbuild targets. 2018-07-27 11:41:23 +02:00
Rolf Bjarne Kvinge 19d9a64d02 [xharness] Don't add LogicalName beneath Import elements, it doesn't work with MSBuild. 2018-07-27 11:40:53 +02:00
Rolf Bjarne Kvinge 516aab9143 Merge remote-tracking branch 'origin/master' into msbuild-port 2018-07-27 09:43:14 +02:00
Alexis Christoforides 3b18aee934 Include libmono-system-native on Xamarin.Mac 2018-07-26 21:07:47 +02:00
Miguel de Icaza 804e4f1e38 [tests] ApiCMAttachmentTest add custom tests for SecTrust2 and SecIdentity2 2018-07-26 14:54:09 -04:00
Miguel de Icaza 185a599ce8 [Network] Tests, use proper constructor 2018-07-25 11:43:00 -04:00
Rolf Bjarne Kvinge 72124256f9
Merge pull request #4501: Use libc++ instead of stdlibc++ for Xamarin.Mac too.
Use libc++ instead of stdlibc++ for Xamarin.Mac too.

See 0d31720770 for more info.

Also revert a series of commits that bumps min macOS version from 10.7 to 10.9
2018-07-25 17:10:21 +02:00
Rolf Bjarne Kvinge 302328db34 Revert "Bump tests minimum version from 10.7 to 10.9"
This reverts commit acc58900dd.
2018-07-25 11:55:58 +02:00
Vincent Dondain 44799dc42c [arkit] Update for Xcode 10 beta 4 (#4496)
Inlined protocol member. No constructor in interfaces in C#.
Add 'initWithAnchor' to all subclasses of 'ARAnchor'
2018-07-24 20:40:15 -04:00
Miguel de Icaza 5555101333 Add using statements 2018-07-24 13:05:17 -04:00
Miguel de Icaza d5248e6bb4 Merge remote-tracking branch 'remotes/origin/xcode10' into xcode10-network 2018-07-24 11:11:24 -04:00
Sebastien Pouliot f2b82a393f
[xtro][foundation] Move some API to common-Foundation.ignore since they are now common across all OS (#4494) 2018-07-24 08:25:02 -04:00
Sebastien Pouliot ab57c4c53e
[macos][quartzcomposer] Update for beta 4 (#4493)
Apple re-added some constants that were dropped without any clue (and we
filed a rdar for it since it's a breaking change to remove them).

It's now clear that it's deprecated and why
`QC_GL_DEPRECATED(10_5, 10_14);`

so we can update the attribute (and fix the version).

note: also fix extra `;` in `CBUUIDValidRangeString` tests while removing
the special case added earlier (from beta 1)
2018-07-24 08:24:42 -04:00
miguel d3c5cececd [tests] add tests for the various Network constructors 2018-07-23 22:52:39 -04:00
Miguel de Icaza cd8e4a6f41 [Network, CoreFoundation] Fixes for the test suite 2018-07-23 16:20:19 -04:00
Manuel de la Pena 538ca047b7
[CoreMidi] Xcode 10 beta 3 update. (#4470)
Re-addition of the removed bindings after we fixed the structure.
2018-07-23 11:03:17 +02:00
Miguel de Icaza a3ebda99ca [ApiTypoTest] add Explicit Congestion Notification and ECN Capable Transport acronyms
[Network] comment out code that seems to have been removed
[Security] Another type that is only created internally
2018-07-20 16:49:30 -04:00
Alex Soto 7126e06fdd
[Photos] Update bindings to Xcode 10 Beta 4 (#4484) 2018-07-20 14:46:24 -05:00
Alex Soto 19dac3b7b8
[UserNotifications] Update to Xcode 10 Beta 4 (#4481) 2018-07-20 14:44:09 -05:00
Alex Soto 7d17c3e7e9
[FinderSync] Update to Xcode 10 Beta 4 (#4479) 2018-07-20 14:43:01 -05:00
Alex Soto 1fd13fffbe
[Contacts] Update bindings to Xcode 10 Beta 4 (#4475)
* [Contacts] Update bindings to Xcode 10 Beta 4

* Fix typo
2018-07-20 14:40:34 -05:00
Alex Soto 2d1a314102
Merge pull request #4459 from dalexsoto/Xcode10-Beta4
Bump for Xcode 10 beta 4
2018-07-19 22:06:09 -05:00
Miguel de Icaza 7207e1ea8a [Security, Network] address issues found by automatic instance creation 2018-07-19 12:08:48 -04:00
Alex Soto 9bf520f067 Revert "[CoreMidi] Xcode 10 beta 3 update. (#4453)"
This reverts commit 53fdc017a8.

Unfortunately there is not enough info for the AOT compiler to handle
MidiCIDeviceIdentification struct and this is causing mtouch tests to fail
2018-07-19 10:00:42 -05:00
Alex Soto 313cb7df72
[xharness] Fix simulator hangs in our tests 2018-07-19 09:07:15 -05:00
Manuel de la Pena 752083a53e
[CFNetwork] Xcode 10 beta 3 update. (#4454) 2018-07-19 14:06:34 +02:00
Alex Soto 035fed89e0
[tests] Fix introspection tests in macOS 10.13 2018-07-18 23:40:52 -05:00
Alex Soto 95705d54ca [TVMLKit] Update bindings to Xcode 10 Beta 4 2018-07-18 22:46:09 -05:00
Alex Soto acc58900dd Bump tests minimum version from 10.7 to 10.9 2018-07-18 22:45:30 -05:00
Alex Soto c19710269f Bump for Xcode 10 beta 4 2018-07-18 15:10:41 -05:00
Manuel de la Pena 53fdc017a8
[CoreMidi] Xcode 10 beta 3 update. (#4453) 2018-07-18 19:55:24 +02:00
Manuel de la Pena db62640c0e [PassKit] Added support for Xcode 10 up to beta 3. (#4423)
* [PassKit] Added support for Xcode 10 up to beta 3.

* Minor style changes.
2018-07-13 21:21:16 -05:00
Alex Soto e944b58206
[PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3 (#4439)
* [PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3

* Removes redundant availability attrib and fixes PDFKit library mapping case in xtro
2018-07-13 14:14:05 -05:00
Chris Hamons 6d039cb969
Foundation for Xcode 10 Beta 1-2 (#4375)
- Work around #4441 by commenting out binding until fixed
2018-07-13 14:27:29 -04:00
Manuel de la Pena 62017a1405
[iAd] Xcode 10 beta 3 support. (#4425) 2018-07-13 16:23:44 +02:00
Chris Hamons c429c0a17b
Fix NSViewController to have NSResponder to fix NSCoding 'removal' (#4420)
-  Add test exclusion for NSViewController.GetNewWindowForTab since it is optional but not a protocol
2018-07-10 14:42:03 -05:00
Manuel de la Pena 60398bf53b
[MediaPlayer] Xcode 10 beta 2 support. (#4387) 2018-07-10 18:38:19 +02:00
Manuel de la Pena c1ad3f7865
[AVFoundation] Xcode 10 beta 3 support. (#4388) 2018-07-06 18:57:48 +02:00
Manuel de la Pena 6c06b962ab [UIKit] Added support for Xcode 10 beta 3. (#4395) 2018-07-06 11:52:56 -04:00
Vincent Dondain 2f89775fc2 [arkit] Update to Xcode 10 beta 3 (#4406)
- Updated some ARReferenceObject APIs based on their (better) Swift names. Breaking changes but on new APIs.
- Update ARReferenceObjectTest for device (center and extent have real values on device).
- Reuploaded an arobject file from Beta 3 just in case because of: "ARReferenceObject and ARWorldMap data generated using iOS 12 beta 2 or earlier isn’t compatible with beta 3 or later. Please rescan your objects to generate new ARReferenceObject and ARWorldMap data."
2018-07-05 22:36:33 -04:00
Vincent Dondain e51f17bcb2
[healthkit] Update for Xcode 10 beta 3 (#4405)
Somehow some of the APIs added there weren't reported as missing by xtro. https://github.com/xamarin/xamarin-macios/issues/4407
2018-07-05 17:08:44 -04:00
Alex Soto 79e1392823
[Intents|UI] Update bindings to Xcode 10 Beta 3 (#4402) 2018-07-05 15:36:24 -05:00
Rolf Bjarne Kvinge b8b6ef3f5f
Merge pull request #4278 from rolfbjarne/jenkins-mojave
[tests] Run Xamarin.Mac tests on Mojave, and add more Xamarin.Mac tests.

* Add more Xamarin.Mac tests: introspection, link sdk, link all and xammac_tests.
* Fix TextureAtlasTest.Empty to not crash due to Apple not liking null callbacks. (#4003)
* Run Xamarin.Mac tests on Mojave as well, even though the build OS is an earlier OS (High Sierra).
2018-07-05 18:43:17 +02:00
Sebastien Pouliot 132fa8aa01
[macos][appkit] Update for beta 3 (#4399)
Also convert `NSSharingServiceName` to a smart-enum, add some missing
values and adapt helper method to use the smart-enum (future-proofing it)
2018-07-05 11:21:07 -04:00
Sebastien Pouliot d280683627
[corevideo] Update for beta 3 (#4398) 2018-07-05 08:54:56 -04:00
Rolf Bjarne Kvinge 849453a612 [monotouch-test] Adjust DlfcnTest.OpenClose_libSystem to work with Xcode 10. Fixes #4377. (#4391)
Fixed https://github.com/xamarin/xamarin-macios/issues/4377.
2018-07-04 20:38:45 -04:00
Alex Soto 3604c4b04b
[CarPlay] Update bindings to Xcode 10 Beta 3 (#4396) 2018-07-04 18:47:41 -05:00
Manuel de la Pena fce1e4c135 [NaturalLanguage] Xcode 10 beta 3 update. (#4390) 2018-07-04 14:43:00 -04:00
Sebastien Pouliot 13ecb2adef
[watchos][watchkit] Update for beta 3 (#4392) 2018-07-04 13:57:57 -04:00
Rolf Bjarne Kvinge 404998be92 Fix test build failure. 2018-07-04 17:19:46 +02:00
Rolf Bjarne Kvinge 7deb5e6a90 Fix whitespace. 2018-07-04 17:19:39 +02:00