Skip to content

Conversation

tido64
Copy link
Member

@tido64 tido64 commented May 2, 2024

Description

Declare entitlements in app manifest.

Resolves #1028

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

Add an entitlement e.g.:

diff --git a/example/app.json b/example/app.json
index 3b8992e..3259a87 100644
--- a/example/app.json
+++ b/example/app.json
@@ -13,6 +13,11 @@
       "presentationStyle": "modal"
     }
   ],
+  "ios": {
+    "codeSignEntitlements": {
+      "com.apple.developer.game-center": true
+    }
+  },
   "resources": {
     "android": [
       "dist/res",

Run pod install:

cd example
pod install --project-directory=ios

Make sure node_modules/.generated/ios/App.entitlements contains the entitlement. Alternatively, open the workspace in Xcode and examine App.entitlements.

@tido64 tido64 requested review from Saadnajmi and kelset as code owners May 2, 2024 11:32
@github-actions github-actions bot added platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS labels May 2, 2024
Copy link
Contributor

@kelset kelset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff - works as expected

Screenshot 2024-05-03 at 10 53 32

@tido64 tido64 merged commit 019cb93 into trunk May 3, 2024
@tido64 tido64 deleted the tido/entitlements branch May 3, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS/macOS: add ability to set entitlements
2 participants