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

6351 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 9902318a40 [mmp] Use Xcode 9.4 clang to compile 32-bit static registrar code. 2019-06-04 13:45:33 -07:00
Vincent Dondain e0dda4d109 Fixed source build issue
We were hitting this:

```
fatal error: /Applications/Xcode11-beta1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/vidondai/Documents/xi-xcode11/xamarin-macios/builds/install/targetwatch64_32/tmp-lib/libmono-native-unified.dylib (No such file or directory)
make[2]: *** [/Users/vidondai/Documents/xi-xcode11/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/Xamarin.WatchOS.sdk/usr/lib/libmono-native-unified.dylib] Error 1
```
2019-06-04 16:22:11 -04:00
Rolf Bjarne Kvinge 75359b53ca More source build adjustments 2019-06-04 11:33:49 -07:00
Rolf Bjarne Kvinge ce5ba1e41d Find libmono-native-unified.a when building from source. 2019-06-04 10:36:42 -07:00
Alexander Köplinger 94de745b69 Bump mono 2019-06-04 19:19:34 +02:00
Manuel de la Pena 369390ad6e Bump mono. 2019-06-04 18:52:41 +02:00
Manuel de la Pena 8da6ff09cc Merge branch 'xcode11-build-mono' of github.com:mandel-macaque/xamarin-macios into xcode11-build-mono 2019-06-04 18:43:10 +02:00
Manuel de la Pena a0a23a42d6 Add the missing flags to the native templates. 2019-06-04 18:42:46 +02:00
Alexander Köplinger 309277fc7e Bump mono 2019-06-04 17:46:46 +02:00
Alexander Köplinger 10d7ec62b3 Bump mono 2019-06-04 17:11:01 +02:00
Rolf Bjarne Kvinge e01096c6f7 Fix logic confusion. 2019-06-04 07:28:21 -07:00
Rolf Bjarne Kvinge 02d01451a0 Build mono from source for now. 2019-06-04 07:24:11 -07:00
Rolf Bjarne Kvinge 8bf57063dc Temporary disable simulator system check. 2019-06-04 07:15:20 -07:00
Alexander Köplinger 99e17e2019 Set MACOS_VERSION and WATCHOS5_VERSION in the Mono SDKs config
To make sure we correctly propagate the values from xamarin-macios.
2019-06-04 15:35:50 +02:00
Alexander Köplinger 8274755870 Bump mono 2019-06-04 15:34:36 +02:00
Manuel de la Pena 6c95ce8424 [XCode11] Allow to compile the project andmono with Xcode 11.
Allows to build the project using XCode 11. In order to do so until we
get the mono SDK built in the bots with the Xcode 11 you need to set the
env var MONO_BUILD_FROM_SOURCE=1 so that you build mono in your system.
2019-06-04 14:27:37 +02:00
Manuel de la Pena 2f32f4f492 Bump mono to a xcode11 branch. 2019-06-04 14:18:22 +02:00
monojenkins e27067ab30 [d16-2] [xharness] Don't report tests whose device were not found if there were no such tests. (#6169) 2019-06-03 22:47:41 +02:00
Manuel de la Pena f7d7c7668a
Bump mono. (#6192)
Bump to head mono in advance to be ready.
2019-06-03 17:10:06 +02:00
monojenkins 82d0a65400 [msbuild] Lock variables accessed in a Parallel.ForEach callback. (#6188)
Lock variables accessed in a Parallel.ForEach callback, since the callback
must be thread-safe because it's executed in parallel using multiple threads.
2019-06-03 13:16:50 +02:00
monojenkins 3cd018b55c [msbuild] Lock variables accessed in a Parallel.ForEach callback. (#6189)
Lock variables accessed in a Parallel.ForEach callback, since the callback
must be thread-safe because it's executed in parallel using multiple threads.
2019-06-03 12:59:59 +02:00
Sebastien Pouliot d675b65abf
[xcode11] Bump product versions (#6199)
to avoid duplicated numbers across branches
and accept any (up to .99) version of VS4M 8.x
2019-06-01 22:38:31 -04:00
Rolf Bjarne Kvinge 1a00252ed0 [generator] Don't print multiple EditorBrowsable attributes. Fixes xamarin/maccore#1661. (#6179)
It's not allowed to have multiple EditorBrowsable attributes on the same
member, so make sure the generatod doesn't generate such code.

We might want to print an "[EditorBrowsable (Never)]" because a particular API
is obsolete (i.e. has the "[Obsolete]" attribute), but if the API also has an
EditorBrowsable attribute already, use only that one instead.

Fixes https://github.com/xamarin/maccore/issues/1661.
2019-05-31 10:22:01 +02:00
Rolf Bjarne Kvinge 70e2343d57 [generator] Check if an object/pointer is null before trying to call release on it. (#6148)
Note that the 'needsPtrZeroCheck' variable is not accurately named anymore,
but given that the code is somewhat impenetrable I wasn't able to come up with
a better name.

Also simplify two consecutive and identical null checks to a single check.
2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 62eb97d618 [generator] Fix generation of ReturnRelease code for third-party bindings. (#6135)
Don't use internal platform API (the Selector.Release field), and make sure
the void_objc_msgSend function exists in the binding.
2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 7f4d8529a1 Fix availability correctly. 2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 9ed942659d Simplify nested usings. 2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 222a482fea Fix whitespace. 2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 40096a1eaf [tests] Use a higher offset when calling MTLBuffer.CreateTexture to try to comply with the requirements for the API.
Hopefully fixes this assertion:

> 07:42:06.7701360 validateStrideTextureParameters:1512: failed assertion `Linear texture: bytesPerRow (64) must be aligned to 256 bytes'

which doesn't happen on my machine.
2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 16e1b85289 [tests] MTLFunctionConstantValues didn't have a default ctor until Xcode 9. 2019-05-31 06:32:58 +00:00
Rolf Bjarne Kvinge 96517671f6 [Metal] Sprinkle [return: Release] on all 'new*' selectors. Fixes #5941.
Also add tests for all the API I could figure out how to use.

Fixes https://github.com/xamarin/xamarin-macios/issues/5941.
2019-05-31 06:32:58 +00:00
monojenkins 72c4a8ab90 [xtro] Add new checker for '[return: Release]' attributes. Fixes #6014. (#6151)
Also add a 'u2ignore' tool that can copy the resulting unclassified (all 1612
of them) to the ignore files.

Fixes https://github.com/xamarin/xamarin-macios/issues/6014.
2019-05-28 10:10:39 -07:00
Rolf Bjarne Kvinge 4400ca4ac0
Bump mono. (#6134)
New commits in mono/mono:

* mono/mono@dfd4224fdd [System] Fix monotouch_runtime repl assemblies (#14637)
* mono/mono@86f0cac480 [MacSDK] Trigger redownload of Nuget 5.0.2 (#14632)
* mono/mono@2098efce25 [ci] Build macOS .pkg PR builds on a separate bot (#13600)
* mono/mono@c664b47d2c [2019-02] Throw ObjectDisposedException instead of crashing when Cairo.Context handle == IntPtr.Zero (#14627)
* mono/mono@70e83b66b3 [2019-02] [System.Core] Ensure monotouch[_runtime] API are identical (#14616)
* mono/mono@3dc72cfe51 [sdks] Fix min OSX version of runtime files in Mac SDK
* mono/mono@50254b6bb0 Apply suggestions from code review
* mono/mono@cf33bd3fb3 Plug leak of CustomAttribute initializer name
* mono/mono@8c8b086d93 [tests] Add xunit.execution.dotnet.dll to tests directory
* mono/mono@4c747d34dd [Android] Fix runtime loading of DSOs for 64-bit processes
* mono/mono@f7ad4b2916 [tests] Add Xunit.NetCore.Extensions.dll to tests directory
* mono/mono@0bd00ec588 Bump msbuild to track mono-2019-02 (#14069)

Diff: 16c6ac81b3..dfd4224fdd
2019-05-28 10:03:52 -07:00
monojenkins aab104dd1a [d16-2] [xharness] Don't use a dash in the bundle identifer for watchOS projects. (#6118)
* [xharness] Don't use a dash in the bundle identifer for watchOS projects.

It causes problems with the mscorlib test project, which can't be launched properly.

I'm not sure what's the underlying cause, but here are some of the symptoms:

* The watch app actually shows up fine on the device, but:
* mlaunch isn't notified about the new process, so it thinks the app didn't
  launch.
* The new process doesn't receive any environment variables we try to give it,
  which for instance means that it won't auto-start the tests upon launch.
* If we ask mlaunch to attach with lldb, mlaunch will ask watchOS to launch
  the process in a suspended state while lldb attaches. Yet the watch app
  shows up on the device as if not asked to be suspended upon launch.

It seems that the dash (I assume, because I haven't investigated this very
deeply, I just happened to find a solution that worked) makes watchOS launch
the app as if tapped, instead of launched from an IDE.

The strangest part is that this only happens with the mscorlib test project,
not any of the other test projects we run on the watch, and they all have
dashes in their bundle identifiers... yet replacing the dash with another
character (underscore, letter, removing it altogether) all made things work as
expected.

* [monotouch-test] Adjust expected value for watchOS bundle id.

The watchOS bundle ID changed in fc5067ee67, and
the test failure wasn't caught properly.
2019-05-24 08:47:02 -07:00
monojenkins 4aaa1858c8 [Jenkins] Do not run device tests in the internal jenkins instance. (#6111) 2019-05-24 08:46:37 -07:00
monojenkins f08d4e3ea8 [d16-2] [foundation] Add custom trust/certificate validation to NSUrlSessionHandler. Fix #4170 (#6110)
Basic application (size) for doing an `HttpClient.GetAsync`, release/llvm, 64bits only

- NSUrlSessionHandler (master): 6.4 MB
- NSUrlSessionHandler (PR#5936): 7.7 MB
- NSUrlSessionHandler (this PR): 6.4 MB

The size increase occurs because of the reference to .net `X509*` types.
This brings a lot of additional code, including managed cryptographic
code, inside the application - even when the feature is **not** used.

The solution is to expose an API that only use native (OS) types, which
are mostly already part of the application. This has a very low impact
on existing applications.

It's still possible to hook back to .NET validation if needed (it should
not in most cases) but, in this case, the extra price will only be
_paid_ if used (and can be lower if the code is needed by something else
from the application).

In comparison using other `HttpClient` handler produce app sizes of

- HttpClientHandler (managed): 10.4 MB
- CFNetworkHandler: 6.8 MB

Based on/supersede https://github.com/xamarin/xamarin-macios/pull/5733
Fix https://github.com/xamarin/xamarin-macios/issues/4170
2019-05-23 09:51:42 -05:00
Rolf Bjarne Kvinge 48430a7876
Merge pull request #6100 from rolfbjarne/arm64_32-d16-2
[d16-2] Implement support for ARM64_32. Fixes #4864.
2019-05-22 22:50:50 -07:00
Rolf Bjarne Kvinge 67eb2bce82 Bump mono.
New commits in mono/mono:

* mono/mono@16c6ac81b3 [interp] disable inlining for built-in types (#14531)
* mono/mono@1ce13bb09d [arm] one more attempt to fix slotsize issue on llvmonly (#14444) (#14535)
* mono/mono@bb3c9db497 [2019-02] [monodroid] Introduce 'win32 host' BCL build (#14504)
* mono/mono@ca17767758 [sdks] Set PATH in Android Windows SDK pipeline job (#14519)
* mono/mono@1cb80e7ecf [sdks] Set win-amd64 CI_TAGS for windows pipeline step (#14516)
* mono/mono@c857c27d2e [2019-02][sdks] Build Android SDK on Windows (#14472)
* mono/mono@ab378434b9 [2019-02][ci] Add Android Windows (Release) archive job to pipeline (#14503)

Diff: 06c3f55312..16c6ac81b3
2019-05-22 08:14:05 +02:00
Rolf Bjarne Kvinge 6228e49554 [tests] Link NUnit/XUnit watchOS extensions.
Makes them much smaller.
2019-05-22 08:13:31 +02:00
Rolf Bjarne Kvinge 2782ad3482 [tests] Fix reporting back to xharness for watchOS NUnit/XUnit tests.
* Choose the first hostname for the HttpTextWriter if there are multiple hosts.
* Open the HttpTextWriter before writing to it.
* Don't overwrite the http writer with another writer immediately after creating it.
* Close the HttpTextWriter when done writing.
* Wait for the HttpTextWriter to complete the final http request before exiting.
2019-05-22 08:13:25 +02:00
Rolf Bjarne Kvinge 3d0398f915 [monotouch-test] Don't go completely overboard when trying to fill the GC's nursery. 2019-05-22 08:13:22 +02:00
Rolf Bjarne Kvinge 99fddda71b Fix whitespace. 2019-05-22 08:13:17 +02:00
Rolf Bjarne Kvinge d2c4e4ac96 [xharness] Rework arm64_32 variations a bit so that they're not always enabled.
We don't want to try to run arm64_32 tests on bots that don't have devices
attached, so make sure they follow the logic of other device tests.
2019-05-22 08:12:56 +02:00
Rolf Bjarne Kvinge 281ea5f97d [xharness] Don't run the mono-native-compat test on ARM64_32.
ARM64_32 only supports the unified native mode.
2019-05-22 08:12:14 +02:00
Rolf Bjarne Kvinge c870d3303d [tests][mtouch] Adjust Xamarin.Tests.ProductTests.MinOSVersion for watchOS/arm64_32 slices. 2019-05-22 08:12:10 +02:00
Rolf Bjarne Kvinge 5cab1e8d57 [tests][mtouch] Adjust minOS version test for arm64_32. 2019-05-22 08:12:06 +02:00
Rolf Bjarne Kvinge 4fe3ce9ae9 [monotouch-test] LLVM's too smart for our tests, so ignore Symbols.FunctionNames when LLVM is enabled. 2019-05-22 08:12:03 +02:00
Rolf Bjarne Kvinge ab37943c84 [tests][mtouch] Add abi/architecture tests for arm64_32. 2019-05-22 08:11:59 +02:00
Rolf Bjarne Kvinge af1a8db426 [monotouch-test] Adjust for arm64_32 abi. 2019-05-22 08:11:56 +02:00
Rolf Bjarne Kvinge e4d01fee7f [introspection] ARM64_32 adjustments. 2019-05-22 08:11:52 +02:00