fix(mas): add application-groups entitlement so the sandboxed app launches#35
Merged
Merged
Conversation
…nches The Mac App Store build crashed on launch (Apple guideline 2.1(a): no window or menu bar item appeared). Electron communicates with its helper processes over a Mach service named <TeamID>.<BundleID>.MachPortRendezvousServer, and a sandboxed app can only register that service if the name is covered by an App Group. Without com.apple.security.application-groups the main process aborted at startup (bootstrap_check_in: Permission denied) before creating any UI. Add the entitlement (value = the app-identifier, TeamID.BundleID, per the Electron MAS guide) and bump the MAS build number to 2.1.1 for a fresh upload. Verified locally: an ad-hoc sandboxed re-sign now launches fully (main window + all helper processes) instead of crashing instantly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Mac App Store build crashed on launch (Apple guideline 2.1(a) — no window or menu bar item appeared).
Root cause
Electron communicates with its helper processes over a Mach service named
<TeamID>.<BundleID>.MachPortRendezvousServer. A sandboxed app can only register that service if the name is covered by an App Group. The MAS entitlements were missingcom.apple.security.application-groups, so the main process aborted at startup:…before creating any UI.
Fix
com.apple.security.application-groups=8Y2UTZ2NBZ.io.out-loud.outloud(the app-identifier form per the Electron MAS guide).buildVersion→ 2.1.1 for a fresh App Store Connect upload.Verification
Reproduced the crash by ad-hoc re-signing the built app with the sandbox entitlements and launching it (died instantly, exit 133). After adding the entitlement, the same test launches fully — main process + GPU/renderer/network helpers spawn and the TTS model loads.
verify:maspasses; the distribution-signed universal pkg embeds the entitlement.🤖 Generated with Claude Code