Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apple): declare entitlements in app manifest #2010

Merged
merged 2 commits into from
May 3, 2024
Merged

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.

Copy link
Member

@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
30 checks passed
@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