question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entitlements Error

See original GitHub issue

m 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bookridescommented, Nov 4, 2017

@sethlu so I figured out what the issue was. I was chaining my npm command electron-packager with the codesign-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 file

1reaction
saurabhsharmacommented, May 25, 2017

Facing same issue… any update?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnosing Issues with Entitlements - Apple Developer
Verify your app's entitlements at every stage of development to track down errors during distribution. Overview. If an error referencing an entitlement occurs ......
Read more >
No Office entitlement found on device - Microsoft Learn
Fixes an error message that occurs when you try to sign in to an Office 2013 app by using Microsoft 365 credentials.
Read more >
Entitlement Error: The selected allocation type is not valid for ...
Hi,. we are having issues with Dynamics 365 Customer Service Hub in a newly created Dev environment. We created the new dev environment...
Read more >
Xcode 8.1 : Entitlements error after adding entitlements file
Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" ...
Read more >
Newly installed Domino server shows errors when collecting ...
Directory Cataloger error processing in database entitlements.nsf: 02:1B. These errors are logged on newly installed Domino 12.0.0 server and no ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found