[AppleAppBuilder] Entitlements to run tests on catalyst using the JIT (#50637)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Mon, 5 Apr 2021 15:22:12 +0000 (11:22 -0400)
committerGitHub <noreply@github.com>
Mon, 5 Apr 2021 15:22:12 +0000 (15:22 +0000)
commitb7a164882573af99eaf200c4b21808ecaf6dbb8c
tree195b8cb0590c6af9651ede80ab56df2b9ed534f4
parent59c592cc8d2778bcc6173baa2b25b13190e42990
[AppleAppBuilder] Entitlements to run tests on catalyst using the JIT (#50637)

* [catalyst] Add jit entitlements to AppleAppBuilder

to use the JIT on MacCatalyst we need the hardened runtime and the JIT
entitlement.  Otherwise mmap() with a MAP_JIT argument fails with EINVAL.

* [catalyst] also add disable library validation entitlement

To load libSystem.Native.dylib from the Resources/ directory in the .app
bundle.  (And possibly to load libicu from homebrew)

* [AppleAppBuilder] cleanup entitlements generation a little

Use a list in the builder instead of hardcoding in the template.

* [mono] update iOS sample to run on Catalyst too

use `make run-catalyst`

* fix typos and address feedback
src/mono/sample/iOS/Makefile
src/mono/sample/iOS/Program.csproj
src/tasks/AppleAppBuilder/Templates/CMakeLists.txt.template
src/tasks/AppleAppBuilder/Templates/app.entitlements.template [new file with mode: 0644]
src/tasks/AppleAppBuilder/Templates/runtime.m
src/tasks/AppleAppBuilder/Xcode.cs