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

5504 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 3aa7582f4c
[monotouch-test] Add version check to SceneKit.ActionTest. Fixes maccore#1119. (#5099)
Fixes https://github.com/xamarin/maccore/issues/1119.
2018-11-08 18:41:19 +01:00
Rolf Bjarne Kvinge ab2f931da6
[tests] Increase the timeout for 'Mac Binding Projects' from the default 5m to 15m. Fixes maccore#1125. (#5105)
Fixes https://github.com/xamarin/maccore/issues/1125.
2018-11-08 18:22:26 +01:00
Rolf Bjarne Kvinge e3f97c56dd
[jenkins] Run the 'Test docs' step even if the 'Run tests' step failed. (#5106)
This is done by preventing the 'Run tests' failure from throwing exceptions, and instead manually set failure modes.
2018-11-08 16:24:56 +01:00
Rolf Bjarne Kvinge fa440cf01c
[xharness] Make sure we don't run 'nuget restore' for tests-mac.sln multiple times in parallel. Fixes maccore#1122. (#5104)
Make sure we don't run 'nuget restore' for test-mac.sln multiple times in
parallel by creating a separate make target that runs 'nuget restore', and
making every build-mac-* target depend on that target.

Fixes https://github.com/xamarin/maccore/issues/1122.
2018-11-08 15:36:56 +01:00
Alex Soto 8c207428a9
[ImageCaptureCore] Add ImageCaptureCore Bindings (#5074)
* [ImageCaptureCore] Add ImageCaptureCore Bindings

Fixes xamarin/xamarin-macios#4273

* [ImageCaptureCore] remove not needed `unsafe`

Co-Authored-By: dalexsoto <alex@alexsoto.me>

* Implement feedback
2018-11-07 09:52:39 -05:00
Rolf Bjarne Kvinge ef3df84a14
[src] Handle some troublesome characters in branch names better. Fixes #5097. (#5100)
Most characters should now work, including emojis.

Except for double quotes, that turned out too ugly.

Workaround: don't create branches with double quotes in their names.

Fixes https://github.com/xamarin/xamarin-macios/issues/5097.
2018-11-07 15:34:36 +01:00
Rolf Bjarne Kvinge 3835e1dafb
[tests] Point MSBuild to the right Xamarin.Mac location when building packaged Xamarin.Mac tests. Fixes maccore#1115. (#5090)
* [tests] Point MSBuild to the right Xamarin.Mac location when building packaged Xamarin.Mac tests. Fixes maccore#1115.

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

* [xharness] Ensure all makefile targets set the proper environment variables.
2018-11-07 09:34:16 +01:00
Emanuel Fernandez Dell'Oca e840eb31d3 [msbuild] Removes CompileEntitlements target inputs (#5096)
Since we don't require projects to contain an Entitlement.plist file we cannot use that as input, because if that file does not exist the CompileEntitlements target will be skipped. This target runs the CompileEntitlements task that generates a new Entitlements file, and that file is required to deploy the app to a device because it contains the application-identifier entitlement.

Fixes #5094
2018-11-07 08:33:18 +01:00
Sebastien Pouliot 47ff8fd1eb
Update dependencies to their heads (#5091)
Commit list for xamarin/Xamarin.MacDev:

* xamarin/Xamarin.MacDev@49a17b1 VSTS 702327: Launch image sizes for iPhone XS Max and iPhone XR (#35)
* xamarin/Xamarin.MacDev@95599c5 Added new Xcode10 Watch Complication values (#34)
* xamarin/Xamarin.MacDev@59b15be Use Version.TryParse
* xamarin/Xamarin.MacDev@2dd5fa0 Merge pull request #32 from xamarin/vsts-692176
* xamarin/Xamarin.MacDev@a97390f VSTS-692176: Add missing AutoFill Credential Provider entitlement
* xamarin/Xamarin.MacDev@19b14f6 Added API to get the recommended Xcode version value

Diff: 39ea45bad4...49a17b1cbb

Commit list for mono/mono:

* mono/mono@4d7b7ab375 [ci] Fix Windows .msi build
* mono/mono@21dc7470bc [bcl] avoid false pinning in GCTest (#11534)
* mono/mono@d9779c1df6 [interp] accept typed-by-ref as return type from a JIT call (#11538)
* mono/mono@e7e14a7929 [interp] transform delegate invoke in method body too (#11549)
* mono/mono@cadeaf43da [ci] Switch to new syntax of Azure Storage plugin

Diff: 709b46e333...4d7b7ab375

Commit list for xamarin/maccore:

* xamarin/maccore@e73094e632 Update maciostools to head (#1117)
* xamarin/maccore@4902ebbdbd Merge pull request #1105 from xamarin/swift-o-matic-optional-virtual-constructor
* xamarin/maccore@76ecea4760 Added IsOptional property.
* xamarin/maccore@77d93295bd Added a test where the init fails to ensure both paths work.
* xamarin/maccore@3d989b1ca4 Support for optional constructors in virtual classes.
* xamarin/maccore@bfdc782d0e Merge pull request #1100 from xamarin/swift-o-matic-constructor-mulligan
* xamarin/maccore@cf8025724d Added field and prop for ClassHandle
* xamarin/maccore@dc2e3f32fe Trimmed down ObjC constructors.
* xamarin/maccore@b53827c151 [SoM] Document CI a bit. (#1101)
* xamarin/maccore@46d01c8c10 [SoM] Provision XI and Mono as well. (#1099)
* xamarin/maccore@b4455eafcb bye bye old code.
* xamarin/maccore@34730dfeac Lots of changes for constructor refactoring.
* xamarin/maccore@bd09006725 Merge pull request #1096 from xamarin/swift-o-matic-required-init
* xamarin/maccore@2af91dc79a Label those asserts!
* xamarin/maccore@ea5b501a47 It looks like cmake isn't there?
* xamarin/maccore@b50285719f Support for required init methods
* xamarin/maccore@6e7187da41 [install-qa-provisioning-profiles] Create directory before trying to create files in it. (#1095)
* xamarin/maccore@8addb4a338 Merge pull request #1092 from xamarin/swift-o-matic-objc-methods
* xamarin/maccore@9dc7111497 Removed dead code, added nfloat.
* xamarin/maccore@663279065d Removed dead code.
* xamarin/maccore@3852918abc Added code to import C# methods defined in ObjC bindings.

Diff: b35c3a8d76...e73094e632
2018-11-06 13:28:41 -05:00
Rolf Bjarne Kvinge 27688e8d5b
[xharness] Fix the generation of the Mac makefile to export the right variables to use the locally build Xamarin.Mac. (#5087) 2018-11-06 15:06:58 +01:00
Rolf Bjarne Kvinge 012a0650b6
[mtouch] Fix formatting for MT0079 and update the MT4134 test to take into account the warning. Fixes maccore#1116. (#5089)
Fixes https://github.com/xamarin/maccore/issues/1116.
2018-11-06 15:06:10 +01:00
Rolf Bjarne Kvinge 1ca7da537d Mono 5.16.0.87+ breaks us, so make sure we don't use it for now. (#5088) 2018-11-06 09:05:02 -05:00
Bernhard Urban b9170ae434 [tests] enable monotouch-test with --interpreter=-mscorlib on Jenkins (#5051)
aka. mixed mode
2018-11-06 13:22:17 +01:00
Rolf Bjarne Kvinge 1b32a8dba5
[monotouch-test] Improve diagnostic output when MessageHandlerTest fails. (#5085)
Reference: https://github.com/xamarin/xamarin-macios/issues/4013
2018-11-06 09:57:35 +01:00
Rolf Bjarne Kvinge ac54b7d065
[monotouch-test] Improve VTDecompressionSessionTests asserts to print better info in case of failure. (#5083)
Showing the actual failed value is much more helpful than just "sorry, it failed".

See https://github.com/xamarin/xamarin-macios/issues/4900.
2018-11-06 09:53:59 +01:00
Sebastien Pouliot 21f3545437
Bump mono 2018-06 before P2 branch (#5084)
Commit list for mono/mono:

* mono/mono@709b46e333 [tests] reduce recursion depth (#11484)
* mono/mono@b291519422 [crash] Fix async setting for crash reporter
* mono/mono@149206a5ee [crash] Fix merp invocation (#11436)
* mono/mono@2f2615ffc8 [2018-06] [delegates] do not use CEE_CALLVIRT for non-virtual methods (#11450)
* mono/mono@47eb7c55eb [2018-06] [interp] Overflow fixes (#11426)

Diff: 3ae42fc38d...709b46e333
2018-11-05 17:52:16 -05:00
Sebastien Pouliot 121fe236ba
[scenekit] Fix `SCNAction.TimingFunction` signature to `Func<float,float>`. Fixes #5058 (#5068)
This was incorrectly bound as `Action<float>`.
Added unit test for the API compatibility stubs.

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

* [tests] Adjust test not to fail

reference: https://github.com/xamarin/xamarin-macios/issues/5072
2018-11-05 14:20:03 -05:00
Sam Schwarz d0d28f8200 Without this added the azure links in the side panel won't work. This step can also be updated to the new pipeline syntax using the pipeline syntax generator. (#5081) 2018-11-05 19:22:24 +01:00
Rolf Bjarne Kvinge 38bae20618
Fix min macOS version confusion. (#5080)
* MIN_OSX_SDK_VERSION: the minimum macOS version we support for running macOS apps.
* MIN_OSX_VERSION_FOR_MAC: the minimum macOS version we support for running XM/XI themselves.

Change our build to make sure the above is respected, and in particular:

* The mac32 and mac64 builds must use MIN_OSX_SDK_VERSION.
* The runtime/ build must use MIN_OSX_SDK_VERSION.
* The tools64 build should use MIN_OSX_VERSION_FOR_MAC.

Also document a bit better the various version variables.
2018-11-05 14:46:41 +01:00
Rolf Bjarne Kvinge ef8f1dcbfe
[mtouch/mmp] Unify Xcode lookup & verification code in mtouch and mmp. (#5077)
Share all the code to find and verify Xcode between mtouch and mmp.

Also print out the actual product version when logging which Xcode was used
(to make it easier to detect if a beta version is in use).
2018-11-05 08:16:29 +01:00
Chris Hamons 366281e8b7
[mmp] Remove duplicate libmono-system-native.a logic (#5073)
- https://github.com/xamarin/xamarin-macios/pull/4980 and the mono branch merge both added it
- However both copies were not the same, one was conditional and one added an extra -u option
- This collapses them into one check
2018-11-02 09:07:50 -05:00
Matt Ward 8339b0075d NSUrlSessionHandler - Support basic auth and multiple auth headers (#5052)
If the challenge is for basic authentication then try to get the
credentials for this authentication type.

Also handle multiple WWW-Authenticate headers, such as:

WWW-Authenticate: Negotiate,  NTLM

If the credentials provided on the NSUrlSessionHandler are not
available for a specific authentication type, or if the authentication
method is not supported, then reject the protection space. This allows
the next authentication challenge to be sent to the DidReceiveChallenge
method. Also handle a null reference exception that could occur if
there were no credentials available for the authentication type.
2018-11-02 09:00:45 -04:00
Vincent Dondain f389c03970 [msbuild] Don't log notices as errors (#5067)
- Fixes #5065: [Xcode10.1]Could not get traitsetID for iPhone11,6 error while building with Xcode10.1 and new iOS device
  (https://github.com/xamarin/xamarin-macios/issues/5065).
- `actool` in Xcode 10.1 now outputs some `com.apple.actool.notices` (we might not have hit that before) and those make the task fail because we log them as errors (we shouldn't).

* Lower notice to LogMessage

Update other LogMessage to output "tool notice :"
2018-11-01 14:08:31 -04:00
Sebastien Pouliot f60fcbbb16
Merge pull request #5066 from spouliot/xcode10.1-master
Merge xcode10.1 into master
2018-11-01 14:00:53 -04:00
Rolf Bjarne Kvinge fdc691d771 [jenkins] Remove any system versions of XI/XM to make absolutely sure nothing in our build requires them. (#5059) 2018-10-31 17:47:28 -04:00
Sebastien Pouliot 2dec2c0193 [xtro] Move remaining todo (MPS) to ignore 2018-10-31 17:28:24 -04:00
Sebastien Pouliot 3ab481ea70 Merge xcode10.1 into master
Also update apidiff from d15-9 since it's both frozen and includes xcode10.1
2018-10-31 15:54:48 -04:00
Emanuel Fernandez Dell'Oca 2922becfd2 [msbuild] VS Incremental build fixes (#5054)
Most of these changes are needed from VS to make incremental builds work.

The problem here is VS runs MSBuild on Windows and remotes (most of) the task executions to the Mac. Since MSBuild is running on Windows the inputs and outputs are checked there, but the output files won't be created on Windows unless those are explicitly declared as output ITaskItems of a task. VS don't copy every file created on the Mac back to Windows because that will increase the build time unnecessarily.

For instance, the _GenerateFrameworkDebugSymbols target was using the Info.plist file created by the dsymutil tool as output, but that file was not declared as ITaskItem output of the DsymUtil task so VS didn't know that file should be created on Windows.

This doesn't mean every task should have an output property declaring ITaskItems, but if you're writing a target that will use certain files as output those files should be output of one of the tasks that target is running.

Partial fix for https://dev.azure.com/devdiv/DevDiv/_workitems/edit/710309.
2018-10-31 15:05:07 -04:00
Michiel Sioen def919add8 [coregraphics] Added ScreenImage overload for Xamarin Mac allowing for more options (#5056) 2018-10-31 11:12:44 -04:00
monojenkins 4b89f459a7 [tests] Fix some tests to succeed when run on macOS 10.14 (#5060)
Public bots were updated today.

Fixes https://github.com/xamarin/maccore/issues/1106
Fixes https://github.com/xamarin/maccore/issues/1107
2018-10-31 10:45:46 -04:00
Sebastien Pouliot 0304219723
[tests] Fix some tests to succeed when run on macOS 10.14 (#5057)
Public bots were updated today.

Fixes https://github.com/xamarin/maccore/issues/1106
Fixes https://github.com/xamarin/maccore/issues/1107
2018-10-31 08:32:36 -04:00
Sebastien Pouliot cbfb047adc
Update for Xcode 10.1 final release, including last minute Pen/Tap API (#5055) 2018-10-30 21:12:54 -04:00
Marek Safar 600da056f5 Bump system mono dependency 2018-10-30 14:26:34 +01:00
Marek Safar 08813eff2d Bump mono 2018-10-30 10:12:52 +01:00
Rolf Bjarne Kvinge 7425218c78 Merge remote-tracking branch 'origin/master' into mono-2018-08 2018-10-30 07:42:02 +01:00
Rolf Bjarne Kvinge c69c74b3d3
Clone files if possible whenever it makes sense. (#5049)
Cloning is faster when supported, and it also saves disk space.
2018-10-29 16:09:30 +01:00
Bernhard Urban 15849eeff8 Bump to mono:2018-06 (#5050)
Commit list for mono/mono:

* mono/mono@3ae42fc38d [2018-06] [aot] add unbox_arbitrary_trampoline for fullaot/interp mixed mode (#11362)
* mono/mono@c4f7644e97 [tests] lower recursion depth of PerformNoPinAction (#11325)
* mono/mono@adeaf3e033 [SDKS, LLVM] Disable detection and use of libxml2 (#11341)
* mono/mono@32d1539629 [runtime] Don't init classes in ves_icall_RuntimeTypeHandle_is_subclass_of

Diff: c0fe724379...3ae42fc38d
2018-10-29 08:37:13 -04:00
Rolf Bjarne Kvinge aa668710f7 [iTunesLibrary] Fix typo & confusion. (#5046)
I'm not sure why we have an entry in our list of frameworks claiming that
iTunesLibrary was introduced in macOS 10.9, when we didn't have any bindings
for the library back then.

In any case we also have an entry for iTunesLibrary in our list of frameworks
claiming that iTunesLibrary was introduced in macOS 10.14.

I looked at some of Apple's documentation for the types in iTunesLibrary, and
they all claim to be introduced in macOS 10.13 [2].

And to make matters even more interesting, Apple's documentation for the
framework itself states the library is in
/Library/Frameworks/iTunesLibrary.framework, and ships with iTunes 11.0+ [1]
(which is introduced in 2012).

Then I looked at a macOS 10.14 machine, and the framework is available at
/System/Library/Frameworks/iTunesLibrary.framework, and
/Library/Frameworks/iTunesLibrary.framework is just a symlink there
(/System/Library/Frameworks/iTunesLibrary.framework does not exist on my macOS
10.13 machines, while /Library/Frameworks/iTunesLibrary.framework does). From
this I conclude that the framework was converted into a
system framework in macOS 10.14, and as such our claim that the framework was
introduced in 10.14 is at least somewhat right.

So treat iTunesLibrary as any other framework introduced in macOS 10.14, and
remove our (duplicated) framework entry for 10.9 (for which we didn't have any
bindings anyway).

Also fix the path to the framework, I'm wonder how this got past our tests in
the first place.

[1] https://developer.apple.com/documentation/ituneslibrary: "... located at /Library/Frameworks/iTunesLibrary.framework ... The iTunes Library framework is available to users running iTunes v11.0 or above."
[2] https://developer.apple.com/documentation/ituneslibrary/itlibrary?language=objc
2018-10-26 17:22:03 -04:00
Sebastien Pouliot 917214828d
[xharness] Log the environment variables in the execution logs (#5045)
While trying to debug an msbuild unit tests it was not possible to
successfully copy/paste the command from the execution log and
run it in a shell.

It's not that hard to run xharness and figure it out - but the
same can happen on bots (which could be harder).

So that little change prints out the host and xharness changes
to the environment variables to make copy/pasters life even
lazier :)
2018-10-26 13:34:08 -04:00
Sebastien Pouliot eaa6435e89
[msbuild] Avoid an NRE in BtouchTask when an invalid extra argument is provided (#5041)
The task itself should not throw. An invalid argument is an error that
should (and is) reported by `btouch` itself (and the task picks it up).
This makes the error reporting much more useful and the way an exception
is reported, from Windows, is also confusing
```
MessagingRemoteException: An error occured on client Build4110732 while executing a reply for topic xvs/Build/4.11.0.732/execute-task/ClassLibrary1/6e85b94002fBTouch ArgumentNullException: Value cannot be null.
```

Unit tests added.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/656983
2018-10-26 13:18:05 -04:00
Rolf Bjarne Kvinge 82e0c73e0b Bump minimum mono one that has 'mono_dangerous_add_raw_internal_call'. 2018-10-26 17:15:19 +02:00
Rolf Bjarne Kvinge 93e72862f7 [mmptest] Less hardcoding. 2018-10-26 17:15:19 +02:00
Aleksey Kliger (λgeek) 7449e51bba [2018-08][watchos] Use mono_dangerous_add_raw_internal_call for watchOS icalls (#5030)
* Add optional mono_dangerous_add_raw_internal_call to exports.t4

* Use mono_dangerous_add_raw_internal_call on watchOS for icall registration

Internal calls added with mono_dangerous_add_raw_internal_call run in GC Unsafe
mode under cooperative and hybrid suspend, whereas internal calls added with
mono_add_internal_call run in GC Safe mode since
mono/mono@5756ba4b46 in order for hybrid suspend
to be a transparent replacement for preemptive suspend (the old default).  The
icalls in GC Unsafe mode have a responsibility not to block indefinitely
without manually performing a thread state transition to GC Safe mode, and in
return they avoid a thread state transition when the icall is invoked from a
managed method.
2018-10-26 07:46:28 +02:00
Marek Safar 0b27eef7dc Bump mono 2018-10-25 20:14:41 +02:00
Chris Hamons 12262c4cba
[macos] Add NSScrollView.AddFloatingSubview (#5040)
- https://github.com/xamarin/xamarin-macios/issues/5039
2018-10-25 11:56:23 -05:00
Rolf Bjarne Kvinge 35df3a5294
[introspection] Fix a few issues found on iPad Air 2 with iOS 12. (#5034)
* [introspection] MPSCnnBinaryKernel's kernelHeight/kernelWidth are missing on iOS too.

* [introspection] CoreNFC is not even available on all devices.
2018-10-25 17:47:05 +02:00
Rolf Bjarne Kvinge 2b85aaef56
[tests] Only build exactly what's neded for running XM tests on older bots. (#5038)
Also build what we can in parallel (and manually building shared dependencies first).
2018-10-25 17:17:03 +02:00
Rolf Bjarne Kvinge 36209e55e9 Remove 10.7 & 10.8 availability attributes, since they're redundant now. 2018-10-25 17:12:39 +02:00
Rolf Bjarne Kvinge 2755245b91 [tests] More min macOS version setting to 10.9. 2018-10-25 17:12:36 +02:00
Rolf Bjarne Kvinge 3f5aceb4f6 Bump guiunit to get updated min macOS version.
Commit list for mono/guiunit:

* mono/guiunit@9f67042 Bump min macOS version to 10.9.
* mono/guiunit@0c3159a [Harness] Fix exit code of 0 being reported in case of exceptions in the harness
* mono/guiunit@9b7497c Merge pull request #15 from mono/fix-more-warnings
* mono/guiunit@a264470 Fix more warnings
* mono/guiunit@dd094e7 Merge pull request #14 from mono/fix-warnings
* mono/guiunit@b3afede Fix build warnings

Diff: 1306b0d420...9f67042498
2018-10-25 09:54:47 +02:00