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
tofalse
. +2ms electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >=1.1.1
: - Disable by setting
pre-auto-entitlements
tofalse
. +0ms electron-osx-sign Noprovisioning-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:
<?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.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 inInfo.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-signcom.apple.application-identifier
not found in entitlements file, new inserted: HDGHJS34MK.im.EDITOR.pceditor +0ms electron-osx-signcom.apple.developer.team-identifier
not found in entitlements file, new inserted: HDGHJS34MK +0ms electron-osx-signcom.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:
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (11 by maintainers)
Top GitHub Comments
@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.
@jwheare Great, thanks for providing some references too! I will try to experiment a little bit with that.