Skip to content

feat: auto-generate main app entitlements#181

Merged
V3RON merged 2 commits into
mainfrom
feat/voltra-auto-generate-ios-entitlements
Jun 5, 2026
Merged

feat: auto-generate main app entitlements#181
V3RON merged 2 commits into
mainfrom
feat/voltra-auto-generate-ios-entitlements

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented Jun 5, 2026

What is this?

This PR lets the Voltra CLI handle bare React Native CLI iOS apps that do not already have a main app entitlements file. Previously, enabling Voltra options that require entitlements, such as App Groups, keychain sharing, or push notification support, could fail because the CLI could not discover CODE_SIGN_ENTITLEMENTS on the app target.

How does it work?

When Voltra needs to mutate main app entitlements and the Xcode project does not expose an existing entitlements path, the CLI now resolves a standard main-target path next to the discovered Info.plist, creates the missing plist if needed, and writes the required entitlement values into it. The Xcode target mutation reuses the same resolution logic and only wires the fallback CODE_SIGN_ENTITLEMENTS setting when Voltra actually needs entitlements and the inferred file exists.

Why is this useful?

Bare RN CLI projects can now adopt Voltra features that require iOS entitlements without first creating the entitlements file manually in Xcode. The behavior stays narrow: existing explicit entitlements paths still win, existing files are preserved and updated, and projects that do not need entitlement mutations are not forced into signing with an incidental entitlements file.

V3RON added 2 commits June 5, 2026 08:23
Create a standard main-app entitlements file when Voltra needs to mutate entitlements in bare RN CLI projects.
Only infer main app entitlements when Voltra needs entitlement mutations and report newly generated files as created.
@V3RON V3RON changed the title feat(cli): auto-generate main app entitlements feat: auto-generate main app entitlements Jun 5, 2026
@V3RON V3RON merged commit bd646e2 into main Jun 5, 2026
12 checks passed
@V3RON V3RON deleted the feat/voltra-auto-generate-ios-entitlements branch June 5, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant