Help overcoming two errors building macOS app - Electron doesn't recognize my Apple developer certificate ERROR ITMS-90237 and App sandbox not enabled ERROR ITMS-90296
See original GitHub issue“electron”: “3.0.10”, “electron-builder”: “21.2.0”,
"mac": {
"category": "public.app-category.productivity",
"target": [
"pkg"
],
"identity": "My Company. (4VJSSKP824)",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "dist/entitlements.mac.plist",
"entitlementsInherit": "dist/entitlements.mac.inherit.plist"
},
“dist/entitlements.mac.plist”
<?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.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.disable-executable-page-protection</key>
<true/>
</dict>
</plist>
“dist/entitlements.mac.inherit.plist”
<!--?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.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>TEAMID_AND_PACKAGE NAME</string>
</array>
</dict>
</plist>
I have placed the correct Developer ID certificates.
Have any of you successfully overcome these two problems I am facing to create a build of my electron app for the macOS store? I have included the correct apple certificate and entitlement properties but still electron is not detecting these things in the build process.
Errors:
ERROR ITMS-90237: "The product archive package's signature is invalid. Ensure that it is signed with your "3rd Party Mac Developer Installer" certificate."
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:16
Top Results From Across the Web
App Sandbox not enabled | Apple Developer Forums
Hi. I'm having a problem where my apps are failing Archive validation for the app store with the message "App sandbox not enabled....
Read more >For Mac application getting error … | Apple Developer Forums
For Mac OS X application getting error while validating app while using 3rd party App Developer Certificate for signing : App sandbox not...
Read more >Mac OS/Electron - ERROR ITMS-90207 - Apple Developer
I am using Electron with React-js for my app and Electron-builder to create my distribution bundle. build info: “build”: {.
Read more >Helper app cannot access any web pages? - Apple Developer
apple.security.network.server, and sandbox entitlements, I sign it using the Mac Development certificate. The Electron app is packaged with electron-builder and ...
Read more >Problems launching macOS app built… - Apple Developer
The app is built on Electron Framework and distributed outside of the App Store. I'm building using a "Developer ID Application" certificate. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is my entitlements.mac.plist -
entitlements.mas.plist -
I have also facing this issue.
ITMS-90237: The product archive package’s signature is invalid. Ensure that it is signed with your ‘3rd Party Mac Developer Installer’ certificate.