[mac/mas/mas-dev] entitlements plist in binary format crashes application
See original GitHub issue- Version: 22.6.0
- Electron Version: 8.2.5
- Electron Type (current, beta, nightly): current
- Target: mas, mas-dev, mac
Entitlements plist in binary format crashes application if it uses com.apple.security.app-sandbox
necessary for App Store.
If entitlements
has com.apple.security.app-sandbox
then electron-builder
try to automate entitlements
creation: https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/electron-osx-sign/util-entitlements.js#L34
And save new entitlements
to binary format: https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/electron-osx-sign/util-entitlements.js#L87 instead XML.
Binary format of entitlements
produces:
- Crash on startup on mas and mas-dev build.
- Crash on startup on mac build with sandbox enabled.
electron-osx-sign uses almost the same logic but saves plists to plain XML format.
https://github.com/electron-userland/electron-builder/tree/master/packages/app-builder-lib/electron-osx-sign - saves binary format through https://github.com/develar/app-builder package.
Fix of issue: https://github.com/develar/app-builder/pull/34
Related issues:
- https://github.com/electron-userland/electron-builder/issues/4040
- https://github.com/electron-userland/electron-builder/issues/4834
- https://github.com/electron/electron-osx-sign/issues/225
- https://github.com/electron/electron-osx-sign/issues/223
- https://github.com/electron-userland/electron-builder/issues/4790
- https://github.com/electron/electron-osx-sign/issues/192
- https://github.com/electron/electron/issues/20560
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:10 (4 by maintainers)
Top GitHub Comments