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.

macos 10.12.6 MAS package crash on launch

See original GitHub issue
  • Version: electron-builder 19.23.0
  • Target: macos

dmg work fine. but MAS pkg will crash on launch, i think may be something wrong with code sign…

crash report: Process: EDITOR [10651] Path: /Users/USER/Documents/*/EDITOR.app/Contents/MacOS/EDITOR Identifier: im.EDITOR.pceditor Version: ??? Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: EDITOR [10651] User ID: 501

Date/Time: 2017-08-20 02:45:15.599 +0800 OS Version: Mac OS X 10.12.6 (16G29) Report Version: 12 Anonymous UUID: 3BA22CA9-FBEA-3969-F4DB-E86B8E15EED6

Sleep/Wake UUID: 908F1DE1-7255-44F9-8CC9-3C0FC0391E7A

Time Awake Since Boot: 32000 seconds Time Since Wake: 9100 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (Code Signature Invalid) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace CODESIGNING, Code 0x1

kernel messages:

VM Regions Near 0 (cr2): –> __TEXT 000000010a1ba000-000000010a1bb000 [ 4K] r-x/rwx SM=COW

Thread 0 Crashed: 0 ??? 0x000000010c551000 _dyld_start + 0

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007fff55a45c48 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000 r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000 rip: 0x000000010c551000 rfl: 0x0000000000000200 cr2: 0x0000000000000000

Logical CPU: 0 Error Code: 0x00000000 Trap Number: 0

Binary Images: 0x10a1ba000 - 0x10a1baff7 +??? (0) <107BF4A4-1BF7-306B-944D-7DED190A60FE> (null) 0x10c550000 - 0x10c58ddc7 +??? (433.5) <322C06B7-8878-311D-888C-C8FD2CA96FF3> (null)

External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 37022 thread_create: 0 thread_set_state: 0

AND BUILD LOGS: OKAY take it away electron-builder

electron-builder 19.23.0 No native production dependencies Packaging for mas x64 using electron 1.7.6 to build/mas electron-osx-sign electron-osx-sign@0.4.7 +0ms Signing app (identity: 39773BF9CCB517E0457D54A4A6BC31618C776C46 3rd Party Mac Developer Application: Shenzhen Grameen Vision Cultural Communication Co., Ltd (HDGHJS34MK)) electron-osx-sign identity passed in arguments. +5ms electron-osx-sign Pre-sign operation enabled for provisioning profile:

  • Disable by setting pre-embed-previsioning-profile to false. +2ms electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >= 1.1.1:
  • Disable by setting pre-auto-entitlements to false. +0ms electron-osx-sign No provisioning-profile passed in arguments, will find in current working directory and in user library… +2ms electron-osx-sign Executing… security cms -D -i /Users/LI/Documents/code/EDITOR-destop/embedded.provisionprofile +3ms electron-osx-sign Provisioning profile:

Name: EDITOR-pc-editor-appstore-profile Platforms: [ ‘mas’ ] Type: distribution Path: /Users/LI/Documents/code/EDITOR-destop/embedded.provisionprofile Message: { AppIDName: ‘EDITOR pc’, ApplicationIdentifierPrefix: [ ‘HDGHJS34MK’ ], CreationDate: 2017-08-15T09:42:48.000Z, Platform: [ ‘OSX’ ], DeveloperCertificates: [ <Buffer 30 82 06 01 30 82 04 e9 a0 03 02 01 02 02 08 53 22 43 cd f1 1a 46 d6 30 0d 06 09 2a 86 48 86 f7 0d 01 01 05 05 00 30 81 96 31 0b 30 09 06 03 55 04 06 … > ], Entitlements: { ‘keychain-access-groups’: [ ‘HDGHJS34MK.*’ ], ‘com.apple.application-identifier’: ‘HDGHJS34MK.im.EDITOR.pceditor’, ‘com.apple.developer.team-identifier’: ‘HDGHJS34MK’ }, ExpirationDate: 2018-08-15T08:49:30.000Z, Name: ‘EDITOR-pc-editor-appstore-profile’, TeamIdentifier: [ ‘HDGHJS34MK’ ], TeamName: ‘Shenzhen Grameen Vision Cultural Communication Co., Ltd’, TimeToLive: 364, UUID: ‘0a08a903-d090-45e3-9240-43990b571e3a’, Version: 1 } +88ms electron-osx-sign Found 1 provisioning profile. +4ms electron-osx-sign Looking for existing provisioning profile… +0ms electron-osx-sign Embedding provisioning profile… +1ms electron-osx-sign Copying file… Source: /Users/LI/Documents/code/EDITOR-destop/embedded.provisionprofile Target: /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/embedded.provisionprofile +0ms electron-osx-sign Automating entitlement app group… Info.plist: /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Info.plist Entitlements: /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.plist +2ms electron-osx-sign ElectronTeamID not found in Info.plist, use parsed from provisioning profile: HDGHJS34MK +3ms electron-osx-sign Entitlements file updated: Info.plist: /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Info.plist +5ms electron-osx-sign com.apple.application-identifier not found in entitlements file, new inserted: HDGHJS34MK.im.EDITOR.pceditor +0ms electron-osx-sign com.apple.developer.team-identifier not found in entitlements file, new inserted: HDGHJS34MK +0ms electron-osx-sign com.apple.security.application-groups found in entitlements file: HDGHJS34MK.im.EDITOR.pceditor +0ms electron-osx-sign Entitlements file updated: Entitlements: /var/folders/nm/fg4spn8d4gv2c2sk5pg4bf9h0000gn/T/tmp-entitlements-2928-0.plist +1ms electron-osx-sign Signing application… Application: /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app Platform: mas Entitlements: /var/folders/nm/fg4spn8d4gv2c2sk5pg4bf9h0000gn/T/tmp-entitlements-2928-0.plist Child entitlements: /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist Additional binaries: undefined Identity: { name: ‘3rd Party Mac Developer Application: Shenzhen Grameen Vision Cultural Communication Co., Ltd (HDGHJS34MK)’, hash: ‘39773BF9CCB517E0457D54A4A6BC31618C776C46’ } +1ms electron-osx-sign Walking… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents +1ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +49ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +1ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +2s electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +171ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework +394ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/Electron Framework.framework +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper EH.app/Contents/MacOS/EDITOR Helper EH +1s electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper EH.app/Contents/MacOS/EDITOR Helper EH +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper EH.app +126ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper EH.app +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper NP.app/Contents/MacOS/EDITOR Helper NP +118ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper NP.app/Contents/MacOS/EDITOR Helper NP +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper NP.app +114ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper NP.app +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper.app/Contents/MacOS/EDITOR Helper +136ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper.app/Contents/MacOS/EDITOR Helper +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper.app +168ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/Frameworks/EDITOR Helper.app +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/MacOS/EDITOR +134ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /Users/LI/Documents/code/EDITOR-destop/build/entitlements.mas.inherit.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app/Contents/MacOS/EDITOR +0ms electron-osx-sign Signing… /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app +196ms electron-osx-sign Executing… codesign --sign 39773BF9CCB517E0457D54A4A6BC31618C776C46 --force --entitlements /var/folders/nm/fg4spn8d4gv2c2sk5pg4bf9h0000gn/T/tmp-entitlements-2928-0.plist /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app +1ms electron-osx-sign Verifying… +209ms electron-osx-sign Verifying application bundle with codesign… +0ms electron-osx-sign Executing… codesign --verify --deep --verbose=2 --strict /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app +0ms electron-osx-sign Verified. +779ms electron-osx-sign Displaying entitlements… +0ms electron-osx-sign Executing… codesign --display --entitlements :- /Users/LI/Documents/code/EDITOR-destop/build/mas/EDITOR.app +0ms electron-osx-sign Entitlements:

<?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.application-groups</key> <string>HDGHJS34MK.im.EDITOR.pceditor</string> <key>com.apple.application-identifier</key> <string>HDGHJS34MK.im.EDITOR.pceditor</string> <key>com.apple.developer.team-identifier</key> <string>HDGHJS34MK</string> </dict> </plist> +47ms electron-osx-sign Application signed. +0ms Done in 55.50s.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
sethlucommented, Aug 20, 2017

@fu122zh so the one already signed with distribution certificate and the distributional provisioning profile is fine for submission to the Mac App Store. The catch is that… this signed version cannot be launched locally… and that’s what caused your app to crash.

And to test it locally you may re-sign it with a development certificate and a development provisioning profile.

0reactions
sethlucommented, Oct 2, 2017

@jwheare Great, thanks for providing some references too! I will try to experiment a little bit with that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update 10.12.6 crashes computer - Apple Support Communities
Update 10.12.6 crashes computer. I have tried to install the update now twice both times my computer crashed. I restored from Time Machine....
Read more >
CHIRP Launches and Immediately Crashes on Mac, OS 10.12.6
I downloaded the latest update to CHIRP and now it won't launch on my Mac, running 10.12.6. Ever since I downloaded the update...
Read more >
Did your Mac crash, freeze or panic?
One potential solution is to start up in Safe mode (with the Shift key held), leave your Mac for a minute or two,...
Read more >
Games not launching :: Steam for Mac
OS 10.12.6. If you start games from file, they crash as soon as steam launches. #7.
Read more >
Spotlight Repeatedly Silently Crashing - Apple Stack Exchange
This appears to be a known bug in macOS Sierra 10.12.6 with the Safari 12 update. I fixed Spotlight by following the instructions...
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