Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset validation failed (90296) App sandbox not enabled. #3260

Open
3 tasks done
ndebartha opened this issue Jun 22, 2023 · 3 comments
Open
3 tasks done

Asset validation failed (90296) App sandbox not enabled. #3260

ndebartha opened this issue Jun 22, 2023 · 3 comments

Comments

@ndebartha
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.2.1

Electron version

17.0.0

Operating system

MacOS 13.1

Last known working Electron Forge version

No response

Expected behavior

Adding osxSign: {} inside packagerConfig it should add "com.apple.security.app-sandbox" entitlement with a Boolean value of true.

Actual behavior

Getting error,

Asset validation failed (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

Steps to reproduce

Here is my forge.config.js

module.exports = {
packagerConfig: {
asar: true,
icon: "src/icons/mac/icon.icns",
name: "XXXXX",
appBundleId: "com.app.XXXX",
appVersion: "1.0.3",
buildVersion: "1.0.4",
setupIcon: "src/icons/mac/icon.icns",
osxSign: {},
},
makers: [
{
name: "@electron-forge/maker-pkg",
config: {
"identity": "3rd Party Mac Developer Installer: XXXXXXXXX (XXXXXXXX)",
"identity-validation": true
}
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
};

Additional information

No response

@MarshallOfSound
Copy link
Member

Adding osxSign: {} inside packagerConfig it should add "com.apple.security.app-sandbox" entitlement with a Boolean value of true.

What command are you running, the app-sandbox entitlement is only provided when packaging and signing a mas platform build.

E.g. electron-forge make --platform=mas

@ndebartha
Copy link
Author

ndebartha commented Jun 22, 2023

@MarshallOfSound I'm running electron-forge make --platform=mas --arch=x64

@mmarczell-graphisoft
Copy link

@ndebartha it might not solve your entire problem, but the app store requires universal binaries, so a x64 only upload will not be accepted AFAIK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment