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.

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:closed
  • Created 3 years ago
  • Comments:16

github_iconTop GitHub Comments

3reactions
ghostcommented, Apr 13, 2020

Here is my entitlements.mac.plist - Screenshot 2020-04-13 at 12 22 44 PM

entitlements.mas.plist - Screenshot 2020-04-13 at 12 22 58 PM

1reaction
ajaycallhippocommented, Aug 6, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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