Entitlements Error
See original GitHub issuem trying to package up my electron app with electron-packager and submit to the app store, but App developer keeps failing with 2 errors. My entitlements are not matching its saying, but I have no idea where I am going wrong. I have a provisioning profile, but cannot open it to get the entitlements out of there. Is that what I will need to do?
Errors:
ERROR ITMS-90296: "App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "com.site.app.pkg/Payload/App.app/Contents/Frameworks/App Helper EH.app/Contents/MacOS/App Helper EH", "com.site.app.pkg/Payload/App.app/Contents/Frameworks/App Helper NP.app/Contents/MacOS/QuizzUmmah Helper NP", "com.ahadcove.quizz-ummah.pkg/Payload/QuizzUmmah.app/Contents/Frameworks/QuizzUmmah Helper.app/Contents/MacOS/QuizzUmmah Helper", "com.site.app.pkg/Payload/App.app/Contents/MacOS/App" )] Refer to App Sandbox page at https://developer.apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app."
Entitlements Parent:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
Entitlements Child:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
</dict>
</plist>
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@sethlu so I figured out what the issue was. I was chaining my npm command
electron-packager
with thecodesign-electron.sh
script. The Info.plist file that’s generated from the electron-packager command needs to have the<key>ElectronTeamID</key><string>TEAM_ID</string>
added before the shell script is run to sign it. Anywho, I’m just posting this here in case anyone finds it helpful. Make sure before you sign your app that you’ve added the ElectronTeamID key pair to your Info.plist fileFacing same issue… any update?