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.

[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:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mahnunchikcommented, Nov 6, 2020

Ugdcp8r-6Us

1reaction
mahnunchikcommented, Sep 6, 2020

IMG_20200426_090833

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash after codesign with entitlements - Apple Developer
We codesign our runnable PC application with entitlements.plist as following ... Code: 0x00000000 Trap Number: 0 Binary Images: 0 - 0xffffffffffffffff +?
Read more >
Property List Parsing Bug(s) - Objective-See's Blog
crashing macOS via malformed binary plists ... An example XML-based property list for the macOS application ... binary plist format.
Read more >
Understanding Apple's binary property list format - Medium
Binary plists (bplists) can be easily identified using the file command on macOS. $ file config.plist config.plist: Apple binary property list.
Read more >
How to Convert plist Files to XML or Binary in Mac OS X
This converts the existing binary plist file into XML format, which can then be edited in just about any plain text editor, whether...
Read more >
plistlib — Generate and parse Apple .plist files — Python 3.11 ...
This module supports both binary and XML plist files. The property list ( .plist ) file format is a simple serialization supporting basic...
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