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

2767 Коммитов

Автор SHA1 Сообщение Дата
Vincent Dondain ad906427ea [arkit] Update for iOS 11 beta 1 (new framework) (#2187)
- Fixed the generator to avoid `ARKit/ARSCNViewDelegate.g.cs(189,43): error CS0432: Alias 'Iglobal' not found`.
- ARPointCloud can be tested with this [sample](https://github.com/VincentDondain/ios-testcases/tree/master/ARPointCloudTest).
  It requires deploying on devices and moving the camera around so ARKit can return some points. After 5 seconds it should print the points.
- Fixed intro tests.
- Fixed `bindings-generator.cs` for new simd types.
2017-06-22 19:02:17 -05:00
Chris Hamons 2515e9ba73 [macos] Introspection test fixes for 10.13 (#2234) 2017-06-22 12:43:43 -05:00
Manuel de la Pena 4eafdb150b [CoreData] Updated bindings for xcode9. (#2210)
* Updated bindings for xcode9.
* Fixed the tests to pass in those cases that NSCoding and NSSecureCoding
is supported.

A radar has been created on Apples side:

https://trello.com/c/y87bjnr9/69-32761925-nspersistenthistorytoken-supports-nssecurecoding-yet-supportssecurecoding-returns-false
2017-06-22 11:48:03 +02:00
Rolf Bjarne Kvinge 6c914b1413 Framework tests were still binding non-linked Simple class which errors now (#2216) (#2236)
- Improve Makefile to rebuild when projects build with errors
2017-06-21 16:41:33 +02:00
Rolf Bjarne Kvinge c1348da5f6 [tests][mtouch] Adjust tests to cope with Xcode 9. Fixes #57601. (#2231)
Fixes:

1. Failed : Xamarin.MTouch.MT0091(tvOS,"tvOS")
    The error 'MT0091: This version of Xamarin.iOS requires the tvOS 11.0 SDK (shipped with Xcode 9.0). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).' was not found in the output:
    Message #1 did not match:
        actual:   'This version of Xamarin.iOS requires the tvOS 11.0 SDK (shipped with Xcode 9). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).'
        expected: 'This version of Xamarin.iOS requires the tvOS 11.0 SDK (shipped with Xcode 9.0). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).'

2. Failed : Xamarin.MTouch.MT0091(iOS,"iOS")
    The error 'MT0091: This version of Xamarin.iOS requires the iOS 11.0 SDK (shipped with Xcode 9.0). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).' was not found in the output:
    Message #1 did not match:
        actual:   'This version of Xamarin.iOS requires the iOS 11.0 SDK (shipped with Xcode 9). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).'
        expected: 'This version of Xamarin.iOS requires the iOS 11.0 SDK (shipped with Xcode 9.0). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only (to try to avoid the new APIs).'

3. Failed : Xamarin.Registrar.NoWarnings
    no warnings
    Expected: not String matching "warning:"
    But was:  "/Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tests/mtouch/bin/Debug/tmp-test-dir/Xamarin.MTouchTool.CreateTemporaryDirectory298/mtouch-test-cache/registrar.m:32468:17: warning: method 'paymentAuthorizationViewController:didAuthorizePayment:handler:' in protocol 'PKPaymentAuthorizationViewControllerDelegate' not implemented [-Wprotocol]"

https://bugzilla.xamarin.com/show_bug.cgi?id=57601
2017-06-21 12:07:13 +02:00
Alex Soto 08614af6e3 [generator] Remove check for third party bindings in native enums in [Field] (#2233)
This also happens in our bindings once pmcs is done
2017-06-21 09:12:28 +02:00
Miguel de Icaza 1d1862c531 Merge pull request #2229 from migueldeicaza/xcode9-b1-usernotifications
[UserNotifications] Update to Xcode 9 beta 1
2017-06-20 21:55:54 -04:00
Alex Soto 3c5221b214 [generator] Add enum support for [FieldAttribute], Fixes 57537 and 57535. (#2230)
* [ObjCRuntime] Add GetUInt32/SetUInt32/SetNInt/SetNUInt/SetNFloat to Dlfcn

https://bugzilla.xamarin.com/show_bug.cgi?id=57535
https://bugzilla.xamarin.com/show_bug.cgi?id=57537

This commit is part of the fix for the above bugs, we lacked
GetUInt32/SetUInt32/SetNInt/SetNUInt/SetNFloat in Dlfcn and we
have code inside generator that relies on the methods to be
available 0a316951a3/src/generator.cs (L6090-L6095)

* [generator] Add enum and uint support to FieldAttribute

Fixes:
* https://bugzilla.xamarin.com/show_bug.cgi?id=57535
* https://bugzilla.xamarin.com/show_bug.cgi?id=57537

New Features:
* Added Smart Enum support to [Field]
* Added [Native] enum support to [Field]
* Added enum support to [Field]
* Added uint support to [Field]

Also fixed a bug in Smart Enums support when computing the library name
taking into account third party bindings and some special cases, this is
needed because we ended up generating invalid code when Smart Enum support
was used in third party bindings.

Also added Field Enum generation test.

* Implement PR feedback and added [Get/Set]UInt64 to Dlfcn and [Field] support for it too.
2017-06-20 13:46:00 -05:00
Miguel de Icaza 1784b44cb6 [UserNotifications] Update to Xcode 9 beta 1 2017-06-19 23:18:00 -04:00
Alex Soto 72332b4ae6 [CoreNFC] Add CoreNFC Xcode 9 Beta 1 Bindings (#2226)
* [CoreNFC] Add CoreNFC Xcode 9 Beta 1 Bindings

CoreNFC is not exposed in iOS simulator, no framework/headers are found
makes sense since there is no NFC chip on it.

CoreNFC says it is available on tvOS but headers says just 3 enums
are so not enabling tvOS in this first beta.

* [mtouch] CoreNFC not available on sim, this makes mtouch aware of it
2017-06-19 13:56:00 -05:00
Alex Soto c2d903273c [CoreLocation] Update to Xcode 9 Beta 1 (#2224)
* [CoreLocation] Update to Xcode 9 Beta 1

* [CoreLocation] Inline CLGeocoder_ContactsAdditions so we get Async versions
2017-06-19 12:23:03 -05:00
Rolf Bjarne Kvinge 58fe12880b [mmptest] Don't hardcode the SDK version. Fixes test failure with macOS 10.13. (#2227) 2017-06-19 17:17:13 +02:00
Alex Soto b4131f9e42 [CoreMotion] Update to Xcode 9 Beta 1 (#2225) 2017-06-16 20:50:11 -05:00
Alex Soto b55ff34387 [Accounts] Update to Xcode 9 Beta 1 (#2205)
* [Accounts] Uodate to Xcode 9 Beta 1

Also added ACAccountStore.RemoveAccount, xtro caught this API
common.unclassified:!missing-selector! ACAccountStore::removeAccount:withCompletionHandler: not bound

* [Accounts] Adds a dot at the end of the sentance.
2017-06-13 18:03:36 -05:00
Alex Soto 3cb3fc6a93 [AVKit] Update to Xcode 9 beta 1 (#2206)
* [AVKit] Update to Xcode 9 beta 1

* [AVKit] Fix whitespace
2017-06-13 18:02:57 -05:00
Alex Soto ec016532fd [CallKit] Update to Xcode 9 Beta 1 (#2207)
* [CallKit] Update to Xcode 9 Beta 1

* [CallKit] Fix spacing
2017-06-13 18:01:58 -05:00
Alex Soto 3ffe9435ec [ClockKit] Update to Xcode 9 Beta 1 (#2208)
* [ClockKit] Update to Xcode 9 Beta 1

* [ClockKit] Fix punctuation and apostrophes.
2017-06-13 17:59:31 -05:00
Alex Soto cc690f8acf [Contacts] Update to Xcode 9 Beta 1 (#2209) 2017-06-12 14:49:14 -05:00
Alex Soto 59f97a02b3 [CoreAudioKit] Update to Xcode 9 Beta 1 (#2212) 2017-06-12 14:48:37 -05:00
Rolf Bjarne Kvinge 57ca12f402 [xharness] Run sim32 tests using the 10.3 simulator. (#2203) 2017-06-10 18:44:14 -07:00
Rolf Bjarne Kvinge d4d141756a [monotouch-test] Fix TextFieldTest.GetCaretRectForPositiont_Null correctly for tvOS. (#2204) 2017-06-10 18:43:46 -07:00
Rolf Bjarne Kvinge 8344caf54a [xharness] Disable sim32 tests on wrench for now. (#2202) 2017-06-10 18:42:42 -07:00
Rolf Bjarne Kvinge 9356b53410 [msbuild] Fix MSBuild tests to build using Xcode 9. (#2201)
Set the min deployment target to 7.0 for a test to make sure ibtool doesn't
complain, and fix the list of expected bundle resources by adding Assets.car
to the list.

Fixes the following failures:

1. Xamarin.iOS.Tasks.TargetTests.BuildExecutable :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

2. Xamarin.iOS.Tasks.TargetTests.BundleResources :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

3. Xamarin.iOS.Tasks.TargetTests.CleanExecutable :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

4. Xamarin.iOS.Tasks.TargetTests.CopyContentToBundle :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

5. Xamarin.iOS.Tasks.TargetTests.Disappearing_Bundle_Resource :   #2

      Expected: True
      But was:  False

6. Xamarin.iOS.Tasks.TargetTests.Disappearing_Content :   #2

      Expected: True
      But was:  False

7. Xamarin.iOS.Tasks.TargetTests.OptimizePngs_DefaultValue :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

8. Xamarin.iOS.Tasks.TargetTests.OptimizePngs_False :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

9. Xamarin.iOS.Tasks.TargetTests.OptimizePngs_True :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

10. Xamarin.iOS.Tasks.TargetTests.RebuildExecutable_NoModifications :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

11. Xamarin.iOS.Tasks.TargetTests.RebuildExecutable_TouchLibraryDll :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2

12. Xamarin.iOS.Tasks.TargetTests.UnpackLibraryResources_ExecutableProject :   #RunTarget-ErrorCount

    	ibtool exited with code 1
    	Compiling IB documents for earlier than iOS 7 is no longer supported.
      Expected: 0
      But was:  2
2017-06-10 04:04:26 -07:00
Rolf Bjarne Kvinge 2c3690fe73 [EventKit] Fix a few issues found with iOS 11 (#2198)
* [EventKit] Obsolete the EKAlarm constructor and update tests.

Apple's documentation says "Use the alarmWithAbsoluteDate: and
alarmWithRelativeOffset: class methods to create an alarm", and additionally
calling the default constructor crashes, so obsolete the constructor and don't
call it from tests either.

* [EventKit] Make EKCalendarItem abstract according to Apple's documentation.

Since EKCalendarItem is an abstract class, tests should obviously not create
instances of it - and in fact it fails:

    [FAIL] CalendarItemTest.NullAllowedTest : Foundation.MonoTouchException : Objective-C exception thrown. Name: NSInvalidArgumentException Reason: +[EKCalendarItem frozenClass]: unrecognized selector sent to class 0x10e02bfa0

* [tests] Remove removed file from xammac tests as well.
2017-06-10 00:50:01 -07:00
Alex Soto bfaf62623e [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1 (#2191)
* [Test][Intro] Fix introspection test on API changes for Xcode 9 Beta 1

* [introspection] Fix feedback from PR and bot tests

Removed XAMCORE_4_0 checks from our api definition, and added
a file with stubs for all of them instead. Cleaner binding file
and easier to remove in the future

Fixed introspection also for mac by moving some check into base test definition

* [CoreImage] Add CoreImage stubs so introspection test are happy

These need to be manually reviewed by whoever takes CoreImage framework
tracked in bugzilla so we do not forget

* Do the same API cleanup as in NSUnit

* [test][introspection] Enable MtouchNoSymbolStrip for device builds in order to avoid linking symbols meeded by test (#2196)

Rolf Kvinge [8:59 AM]
@dalexsoto the fix is to not strip the executable please PR that
(it should probably go into master as well). This probably started
happening when Jeff implemented support for stripping debug builds
(previously the setting was ignored)

* [foundation] Provide better messages

* [CoreImage] Fix Availability of CIEdgePreserveUpsampleFilter
2017-06-10 00:07:11 -07:00
Rolf Bjarne Kvinge 982dca2cf3 [Security] Add new ciphers from iOS 11. (#2199)
Fixes this monotouch-test test:

    [FAIL] SecureTransportTest.SslSupportedCiphers : 4865
2017-06-09 23:26:05 -07:00
Rolf Bjarne Kvinge 310a340647 Merge pull request #2200 from rolfbjarne/xcode9-monotouch-test-fixes
[monotouch-test] Update according to changes in Xcode 9 beta 1
2017-06-09 23:25:05 -07:00
Rolf Bjarne Kvinge 03b4d91d19 [monotouch-test] Update AddressBookUI.AddressFormattingTest according to iOS 11 behavior. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge 12e33970e4 [monotouch-test] Update MediaToolbox.FormatNamesTest according to iOS 11 behavior. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge 9e6f5210ae [monotouch-test] Update UIKit.TextFieldTest according to iOS 11 behavior. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge dc1e869c6b [monotouch-test] Ignore SceneKit.NodeTest, it crashes due to an Apple bug. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge d2102d2541 [monotouch-test] Update MDLMaterialProperty test according to new behavior in iOS 11. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge ec1745f996 [monotouch-test] Update AddressBook.SourceTest according to new behavior. 2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge 60f74fb0f7 [monotouch-test] Ignore parts of AddressBookTest.PersonTest due to an Apple bug.
ABMultiValueCreateMutableCopy stopped creating a mutable copy, so our tests
fails. Ignore the corresponding test in beta 1.
2017-06-09 19:27:22 -07:00
Rolf Bjarne Kvinge 7c755d715b [link sdk] Fix Sqlite3 test according to updated simulators. (#2194)
The simulators now have an updated libsqlite3.dylib, so this test needs to be
updated accordingly.

This fixes a link sdk test failure:

    [FAIL] DllImportTest.Sqlite3 : sqlite3_key
2017-06-09 14:49:18 -07:00
Rolf Bjarne Kvinge fa3956cba0 [tests] Fix issues when launching watchOS apps in the simulator. (#2192)
This requires a new mlaunch as well.
2017-06-09 07:24:01 -07:00
Alex Soto 9f4becd993 [tests] Allow monotouch-tests and introspection to run with Xcode 9 Beta 1 (#2185)
* [monotouch-test] Disable EmptyNib tests due to Xcode9 no longer builds nibs if deployment target < 7.0

EmptyNib.xib : ibtool error : Compiling IB documents for earlier than iOS 7 is no longer supported.

* [monotouch-test] Fixt CalendarTest.TestEnumerateDates

It seems that NSCalendar.CurrentCalendar.EnumerateDatesStartingAfterDate
won't stop enumerating unless `stop` is set to `true`.

* [Tests] Add CheckXcodeVersion support for Xcode 9

* [introspection] Avoid introspection to crash with Xcode 9 Beta 1

* [monotouch-test] bring back LogicalName removal from monotouch-test.csproj
2017-06-07 18:03:34 -07:00
Rolf Bjarne Kvinge 40e38a1707 [xharness] Fix iterating over no simulators. (#2183)
Fixes an issue where xharness would try to run tests on a 32-bit simulator,
which does not exist on iOS 11.ñ
2017-06-07 13:49:00 -07:00
Alex Soto f433b83d0f [xtro][Tests] Fix xtro for macOS by ignoring InputMethodKit (#2180)
InputMethodKit in Xcode 9 Beta 1 ships with a broken module
so we ignore it for now, this allows xtro to work
2017-06-07 09:10:53 -05:00
Rolf Bjarne Kvinge b09c0ef45c Bump maccore to get new mlaunch. (#2179) 2017-06-07 06:47:51 -07:00
Vincent Dondain 24cd73a5ca Bump to Xcode 9 (#2176)
- Update Versions-ios and Versions-mac file too.
- Bump maccore and maciostools to the xcode9 branch.
- [builds] Force disable 'futimens' and 'utimensat' so that we build with Xcode 9.
- [builds] 'system' is not available on iOS (simulator).
- [runtime] Fix: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
    - Prevented building xcode9 branch, see: https://jenkins.mono-project.com/job/xamarin-macios-pr-builder/3886/console
  ```
  runtime.m:1122:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
                              char *last_sep = strrchr (info.dli_fname, '/');
  ```

- [registrar] Apple removed a header, so don't include it anymore.
- [mtouch] Don't run the partial static registrar for tvOS.
  The generated output doesn't compile because Apple forgot to ship headers for
the ExternalAccessory framework in their tvOS simulator SDK.
2017-06-06 16:21:26 -04:00
Matt Sylvia 1d4b21d27d Fix maccore hash (#2175) 2017-06-05 09:18:15 -04:00
Matt Sylvia 3754202e1e Merge pull request #2169 from xamarin/version-bump-d15-3
Bumping version for d15-3
2017-06-02 16:47:28 -04:00
Matt Sylvia 7d100d658a Update PACKAGE_HEAD_BRANCH as well 2017-06-02 16:20:39 -04:00
Matt Sylvia 27afd5b9af 3.6 ... not 3.7 2017-06-02 16:07:35 -04:00
Matt Sylvia f732dfd2be Bumping version for d15-3 2017-06-02 16:05:15 -04:00
Matt Sylvia c7cf8f99a0 Branching for d15-3 2017-06-02 15:25:16 -04:00
Chris Hamons 56e36921dd Bump mono (#2168) 2017-06-02 18:32:10 +02:00
Rolf Bjarne Kvinge bc75388fbc [generator] Improve error reporting for api definition that uses the deprecated availability attributes. Fixes #57070. (#2166)
https://bugzilla.xamarin.com/show_bug.cgi?id=57070
2017-06-02 18:31:10 +02:00
Chris Hamons c4228b72f2 Fix stale .gitmodules reference on mono branch (#2167) 2017-06-02 18:30:55 +02:00