Qt macdeployqt - crash after using - macos

When I run application after using macdeploy my application crashed.
I trying use SDK 4.8.5 and 5.2... but nothing to changes..
Command:
Users/ltise/Qt5.2.0/5.2.0/clang_64/bin/macdeployqt Application.app -verbose=2
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/MacOS/Application")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtSvg.framework/Versions/5/QtSvg"
Log: to "Application.app/Contents/Frameworks/QtSvg.framework/Versions/5/QtSvg"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtSvg.framework/Resources" "Application.app/Contents/Frameworks/QtSvg.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets"
Log: to "Application.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Resources" "Application.app/Contents/Frameworks/QtWidgets.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Versions/5/QtGui"
Log: to "Application.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtGui.framework/Resources" "Application.app/Contents/Frameworks/QtGui.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtCore.framework/Versions/5/QtCore"
Log: to "Application.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtCore.framework/Resources" "Application.app/Contents/Frameworks/QtCore.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtOpenGL.framework/Versions/5/QtOpenGL"
Log: to "Application.app/Contents/Frameworks/QtOpenGL.framework/Versions/5/QtOpenGL"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtOpenGL.framework/Resources" "Application.app/Contents/Frameworks/QtOpenGL.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtXml.framework/Versions/5/QtXml"
Log: to "Application.app/Contents/Frameworks/QtXml.framework/Versions/5/QtXml"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtXml.framework/Resources" "Application.app/Contents/Frameworks/QtXml.framework/Resources"
Log:
Log: Deploying plugins from "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/platforms/libqcocoa.dylib"
Log: to "Application.app/Contents/PlugIns/platforms/libqcocoa.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/platforms/libqcocoa.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport"
Log: to "Application.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport"
Log: copy: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtPrintSupport.framework/Resources" "Application.app/Contents/Frameworks/QtPrintSupport.framework/Resources"
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/printsupport/libcocoaprintersupport.dylib"
Log: to "Application.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/printsupport/libcocoaprintersupport.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/accessible/libqtaccessiblewidgets.dylib"
Log: to "Application.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqgif.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqgif.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqgif.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqico.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqico.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqico.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqjpeg.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqjpeg.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqjpeg.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqmng.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqmng.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqmng.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqsvg.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqsvg.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqsvg.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqsvg_debug.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqsvg_debug.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqsvg_debug.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqtga.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqtga.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqtga.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqtiff.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqtiff.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqtiff.dylib")
Log: copied: "/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins/imageformats/libqwbmp.dylib"
Log: to "Application.app/Contents/PlugIns/imageformats/libqwbmp.dylib"
Log:
Log: Deploying Qt frameworks found inside: ("Application.app/Contents/PlugIns/imageformats/libqwbmp.dylib")
Log: Created configuration file: "Application.app/Contents/Resources/qt.conf"
Log: This file sets the plugin search path to "Application.app/Contents/PlugIns"
Application output to console:
Tests:~ ltise$ /Developer/Projects/Tests/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/MacOS/Application ; exit;
("/Users/ltise/Qt5.2.0/5.2.0/clang_64/plugins")
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
objc[47743]: Class NotificationReceiver is implemented in both /Developer/Projects/Tests/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets and /Users/ltise/Qt5.2.0/5.2.0/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets. One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
Support formats: ("bmp", "pbm", "pgm", "png", "ppm", "xbm", "xpm")
QObject::moveToThread: Current thread (0x1039057e0) is not the object's thread (0x1039079f0).
Cannot move to target thread (0x1039057e0)
On Mac OS X, you might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
This application failed to start because it could not find or load the Qt platform plugin "cocoa".
Available platform plugins are: cocoa, minimal, offscreen.
Reinstalling the application may fix this problem.
Abort trap: 6
logout
[Process completed]
Check otool:
otool -L Application.app/contents/macos/application
Log:
Application.app/contents/macos/Application:
/System/Library/Frameworks/GLUT.framework/Versions/A/GLUT (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg (compatibility version 5.2.0, current version 5.2.0)
#executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.2.0, current version 5.2.0)
#executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.2.0, current version 5.2.0)
#executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.2.0, current version 5.2.0)
#executable_path/../Frameworks/QtOpenGL.framework/Versions/5/QtOpenGL (compatibility version 5.2.0, current version 5.2.0)
#executable_path/../Frameworks/QtXml.framework/Versions/5/QtXml (compatibility version 5.2.0, current version 5.2.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 60.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Crash Report on running:
Process: Application [45439]
Path: /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/MacOS/Application
Identifier: #BUNDLEIDENTIFIER#
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [169]
Responsible: Application [45439]
User ID: 503
Date/Time: 2014-02-02 21:38:19.006 +0400
OS Version: Mac OS X 10.9.1 (13B42)
Report Version: 11
Anonymous UUID: 7B93716C-BCAF-BAA9-71E1-51752259B530
Sleep/Wake UUID: CB2DC327-2013-416E-B21F-0655A3570A07
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff89f47866 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8c28635c pthread_kill + 92
2 libsystem_c.dylib 0x00007fff91598bba abort + 125
3 QtCore 0x0000000100ed4b69 0x100ebb000 + 105321
4 QtCore 0x0000000100ed51a1 QMessageLogger::fatal(char const*, ...) const + 161
5 QtGui 0x0000000100a9a5cd QGuiApplicationPrivate::createPlatformIntegration() + 4333
6 QtGui 0x0000000100a9a5eb QGuiApplicationPrivate::createEventDispatcher() + 27
7 QtCore 0x00000001010cc778 QCoreApplication::init() + 104
8 QtCore 0x00000001010cc6e7 QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) + 39
9 QtGui 0x0000000100a9850e QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) + 14
10 QtWidgets 0x00000001004c28be QApplication::QApplication(int&, char**, int) + 206
11 #BUNDLEIDENTIFIER# 0x000000010012b85a main + 618
12 #BUNDLEIDENTIFIER# 0x0000000100004524 start + 52
Thread 1:
0 libsystem_kernel.dylib 0x00007fff89f47e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8c286f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8c289fb9 start_wqthread + 13
Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff89f48662 kevent64 + 10
1 libdispatch.dylib 0x00007fff92c0243d _dispatch_mgr_invoke + 239
2 libdispatch.dylib 0x00007fff92c02152 _dispatch_mgr_thread + 52
Thread 3:
0 libsystem_kernel.dylib 0x00007fff89f47e6a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8c286f08 _pthread_wqthread + 330
2 libsystem_pthread.dylib 0x00007fff8c289fb9 start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff7a579310 rcx: 0x00007fff5fbff638 rdx: 0x0000000000000000
rdi: 0x0000000000000707 rsi: 0x0000000000000006 rbp: 0x00007fff5fbff660 rsp: 0x00007fff5fbff638
r8: 0x00000001030020a0 r9: 0x0000000000000000 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fff5fbff928 r13: 0x00007fff5fbffc20 r14: 0x0000000000000006 r15: 0x00007fff5fbff8f8
rip: 0x00007fff89f47866 rfl: 0x0000000000000206 cr2: 0x0000000100d6ece5
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x100000000 - 0x1002c7fff +#BUNDLEIDENTIFIER# (???) <EE932156-8537-39B5-9537-50FD73AAEB62> /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/MacOS/Application
0x10039a000 - 0x1003daff7 com.apple.glut (3.6.0 - GLUT-3.6.0) <87683C90-4303-3561-9CC8-5772FDEC16F0> /System/Library/Frameworks/GLUT.framework/Versions/A/GLUT
0x10044e000 - 0x100485ff7 +QtSvg (5.2) <03531661-9BA9-3B37-B1D5-EE422B1EB00B> /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/Frameworks/QtSvg.framework/Versions/5/QtSvg
0x10049a000 - 0x100951ff7 +QtWidgets (5.2) <EF8840B8-A258-3110-8B39-EDBE4E708D87> /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
0x100a77000 - 0x100df6ff7 +QtGui (5.2) <1D90F282-6151-3035-8878-C6AFB7E54E1D> /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
0x100ebb000 - 0x1013b3ff7 +QtCore (5.2) <823F3C93-3ADF-3CD3-992D-06097B4F44E5>
....................
/Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-Release/qt_debug/Application.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
0x101437000 - 0x10147efff +QtOpenGL (5.2) <5CCDC659-2305-35DA-95F6-997237B57E28> /Developer/Projects/Vectools/build-Application-Clone_of_Desktop_Qt_5_2_0_clang_64bit2-nwind.dylib
....................
0x7fff9782a000 - 0x7fff97afefc7 com.apple.vImage (7.0 - 7.0) <D241DBFA-AC49-31E2-893D-EAAC31890C90> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff97b6c000 - 0x7fff97b95fff com.apple.DictionaryServices (1.2 - 208) <A539A058-BA57-35EE-AA08-D0B0E835127D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff97b96000 - 0x7fff97bf9ff7 com.apple.SystemConfiguration (1.13 - 1.13) <F05F4149-981B-380B-8F50-51CE804BBB89> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
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: 22215290
thread_create: 2
thread_set_state: 13573
VM Region Summary:
ReadOnly portion of Libraries: Total=211.9M resident=211.8M(100%) swapped_out_or_unallocated=92K(0%)
Writable regions: Total=51.0M written=1344K(3%) resident=1804K(3%) swapped_out=0K(0%) unallocated=49.2M(97%)
REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 40.4M
MALLOC (admin) 32K
STACK GUARD 56.0M
Stack 9304K
VM_ALLOCATE 328K
__DATA 22.0M
__IMAGE 528K
__LINKEDIT 72.6M
__TEXT 139.3M
__UNICODE 544K
mapped file 22.5M
shared memory 4K
=========== =======
TOTAL 363.2M
Model: MacBookPro9,2, BootROM MBP91.00D3.B08, 2 processors, Intel Core i7, 2.9 GHz, 8 GB, SMC 2.2f44
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 1024 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 750,16 GB
Serial ATA Device: MATSHITADVD-R UJ-8A8, 448,6 MB
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 25.1

If you have both Qt versions installed at the same time, it may give you some problems. I think I've had to give up on having both installed at the same time, because of some of the trouble it would give me during deployment.
And then it you have homebrew installed and it has a version of Qt, it can also get in the way on your Path, when the mac deploy tool is running.
Hope that helps.

Related

GateKeeper refues to allow execution of notarized and stapled app on MacOS

We have developed a small test .app with C code that loads (dlopen()) a simple one function dylib library (the dylib file is included in the app Contents under /Contents/Frameworks/), which printf's two text lines to a text file in /tmp/ using xcode 12.
The app (and dylib inside) was signed using provisioning profile that is tied with Developer ID based certificate. App's runtime is hardened, signed, notarized and stapled correctly for Developer ID (to be published on our website) by Xcode archiving/exporting tool's UI.
We verified that it works on our build machine by placing it under /Applications/loadtest.app and executing it by double click ( /tmp/loadtest.log is created and entries are printed correctly. )
Once we download it on another macbook (running with osx 11.4), it will not exeute (getting "You do not have permission to open the application" message from the GateKeeper), and will crash with "Termination Reason: Namespace CODESIGNING, Code 0x1" (see full crash dump below).
Checking with spctl on the new macbook:
spctl -a -t exec -v /Applications/loadtest.app:
"/Applications/loadtest.app: accepted
source=Notarized Developer ID"
We have tried changing the permissions and attributes of the app (found few hints for this on the internet), but it does not help. Someone suggested to restart the machine (to allow it to re-concile Apple's notarization services and download the latest stapling "tickets"), which also didn't help.
If we disable SIP on that test MacBook, the application now runs, not before we get a warning about "unknown publisher" from the gatekeeper and allowing it, but we need our apps to run with SIP enabled.
Does anyone have any hint or suggestion? We contacted Apple, but havn't recieved any answer from them since.
...
Crash dump:
rocess: loadtest [582]
Path: /Applications/loadtest.app/Contents/MacOS/loadtest
Identifier: loadtest
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: loadtest [582]
User ID: 501
Date/Time: 2021-07-15 12:56:09.913 +0300
OS Version: macOS 11.4 (20F71)
Report Version: 12
Bridge OS Version: 5.4 (18P4663)
Anonymous UUID: FD00A5BA-5166-EC7D-B051-E28BDEE29E95
Time Awake Since Boot: 110 seconds
System Integrity Protection: enabled
Crashed Thread: Unknown
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):
-->
mapped file 104a09000-104a0d000 [ 16K] r-x/r-x SM=COW Object_id=a7cdfe2f
Backtrace not available
Unknown thread crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007ffeeb1f6a88
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000010ee38000 rfl: 0x0000000000000200 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0
Unknown thread instruction stream not available.
Unknown thread last branch register state not available.
Binary images description not available
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: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
Writable regions: Total=8400K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8400K(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 1
Stack 8192K 1
VM_ALLOCATE 8K 2
VM_ALLOCATE (reserved) 232K 3 reserved VM address space (unallocated)
mapped file 968K 7
=========== ======= =======
TOTAL 65.2M 14
TOTAL, minus reserved VM space 65.0M 14
Model: MacBookPro16,1, BootROM 1554.120.19.0.0 (iBridge: 18.16.14663.0.0,0), 6 processors, 6-Core Intel Core i7, 2.6 GHz, 16 GB, SMC
Graphics: kHW_IntelUHDGraphics630Item, Intel UHD Graphics 630, spdisplays_builtin
Graphics: kHW_AMDRadeonPro5300MItem, AMD Radeon Pro 5300M, spdisplays_pcie_device, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2667 MHz, Micron, 8ATF1G64HZ-2G6E1
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Feb 16 2021 03:05:58 version 9.30.444.10.32.5.67 FWID 01-3d719d60
Bluetooth: Version 8.0.5d7, 3 services, 25 devices, 1 incoming serial ports
Network Service: USB 10/100/1000 LAN, Ethernet, en7
USB Device: USB3.0 Hub
USB Device: USB 10/100/1000 LAN
USB Device: USB 3.1 Bus
USB Device: USB2.0 Hub
USB Device: Microsoft® Nano Transceiver v1.0
USB Device: USB 2.0 BILLBOARD
USB Device: Apple T2 Bus
USB Device: Composite Device
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 63.5
...

Chrome does not start on OSX after fresh install

It does not matter if I install it via brew or the official google website.
When I start it, it returns an error message:
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Identifier: com.google.Chrome
Version: 78.0.3904.70 (3904.70)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Google Chrome [25447]
User ID: 501
Date/Time: 2019-10-29 21:12:38.185 +0100
OS Version: Mac OS X 10.15 (19A602)
Report Version: 12
Bridge OS Version: 4.0 (17P572)
Anonymous UUID: 624E795F-4392-2D73-55A9-FA070AADAF67
Sleep/Wake UUID: BA0934C2-9072-4B7F-8D72-335B29B00F6C
Time Awake Since Boot: 41000 seconds
Time Since Wake: 780 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [25447]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.google.Chrome.framework 0x000000010d705f43 0x108af0000 + 79781699
1 com.google.Chrome.framework 0x0000000108af3b35 0x108af0000 + 15157
2 com.google.Chrome.framework 0x000000010b241a25 0x108af0000 + 41228837
3 com.google.Chrome.framework 0x000000010b24194e 0x108af0000 + 41228622
4 com.google.Chrome.framework 0x000000010daf8e19 0x108af0000 + 83922457
5 com.google.Chrome.framework 0x000000010b240f44 0x108af0000 + 41226052
6 com.google.Chrome.framework 0x0000000108af347b ChromeMain + 187
7 com.google.Chrome 0x0000000101ff5904 main + 372
8 libdyld.dylib 0x00007fff6ccf8405 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff6cf015b4 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x00007fff6cf015b4 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x00007fff6cf015b4 start_wqthread + 0
Thread 4:
0 libsystem_pthread.dylib 0x00007fff6cf015b4 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00007fda1e71a0b0 rbx: 0x00007fda1e60e1a0 rcx: 0x00000000000003e6 rdx: 0x0000000000000000
rdi: 0x0000000000000005 rsi: 0x00007ffeedc0b518 rbp: 0x00007ffeedc0b500 rsp: 0x00007ffeedc0b500
r8: 0x0000000000000005 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000008
r12: 0x00007ffeedc0b518 r13: 0x00007ffeedc0b998 r14: 0x0000000000000000 r15: 0x00007ffeedc0ba60
rip: 0x000000010d705f43 rfl: 0x0000000000000293 cr2: 0x000000010b3114c0
Logical CPU: 2
Error Code: 0x00000000
Trap Number: 3
Binary Images:
0x101ff4000 - 0x10201dfff +com.google.Chrome (78.0.3904.70 - 3904.70) <DDDD5CED-62D1-33FC-BB57-92084EDA4B95> /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
0x1089ef000 - 0x108a7d93f dyld (732.8) <42C11B81-6928-369F-B03E-D57355572700> /usr/lib/dyld
0x108af0000 - 0x110ee0f17 +com.google.Chrome.framework (78.0.3904.70 - 3904.70) <A82589DF-0869-36A1-8720-5B06C9042155> /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/78.0.3904.70/Google Chrome Framework
0x7fff3155b000 - 0x7fff31752ff2 com.apple.avfoundation (2.0 - 1722.27.4.5) <EC398B56-6AFF-3B51-837C-E2F9999097EA> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff31753000 - 0x7fff3181eff8 com.apple.audio.AVFAudio (1.0 - ???) <2ED23D7A-9635-3D52-BEFE-3044062B023A> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio
[...]
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
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: 288158
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=744.4M resident=0K(0%) swapped_out_or_unallocated=744.4M(100%)
Writable regions: Total=108.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=108.3M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 1
CoreServices 88K 1
Dispatch continuations 24.0M 1
Kernel Alloc Once 8K 1
MALLOC 71.6M 31
MALLOC guard page 16K 4
PROTECTED_MEMORY 4K 1
STACK GUARD 56.0M 5
Stack 10.0M 5
VM_ALLOCATE 44K 2
__DATA 45.8M 354
__DATA_CONST 20K 1
__FONT_DATA 4K 1
__LINKEDIT 351.1M 4
__OBJC_RO 31.8M 1
__OBJC_RW 1760K 1
__TEXT 393.3M 352
__UNICODE 564K 1
mapped file 54.2M 10
shared memory 640K 15
=========== ======= =======
TOTAL 1.0G 792
Model: MacBookPro15,1, BootROM 1037.0.78.0.0 (iBridge: 17.16.10572.0.0,0), 6 processors, 6-Core Intel Core i7, 2,6 GHz, 16 GB, SMC
Graphics: kHW_IntelUHDGraphics630Item, Intel UHD Graphics 630, spdisplays_builtin
Graphics: kHW_AMDRadeonPro560XItem, Radeon Pro 560X, spdisplays_pcie_device, 4 GB
Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, -
Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Jul 24 2019 00:02:16 version 9.30.357.3.32.5.33 FWID 01-22b80374
Bluetooth: Version 7.0.0f8, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: Apple T2 Bus
USB Device: Touch Bar Backlight
USB Device: Touch Bar Display
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Headset
USB Device: Ambient Light Sensor
USB Device: FaceTime HD Camera (Built-in)
USB Device: Apple T2 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.3
Thunderbolt Bus: MacBook Pro, Apple Inc., 47.3
At first it was not responding at all. After I put sudo rm -rf ~/Library/Application\ Support/Google/Chrome once, now I get the error message. (Yes, I had a version of Chrome or Chromium up and running before the reinstall).
How can I fix this? And does someone have similar problems?
I actually had a similar issue where this answer gave me a strong clue about what was wrong. In my case, I did not have a 'Chrome' folder under ~/Library/Application Support/Google/ although I did have a 'Drive' folder, as I clearly installed Google Drive before installing Chrome.
I created the 'Chrome' folder manually and, as soon as I retried opening Chrome, it populated that folder with dozens of files and started successfully.
Apparently Google developers count on Chrome being the only Google product installed when it first launches?
Sorry for being late!!
I was having the same issue and this helped:
In the Mac menu bar at the top of the screen, click Go.
Select Go to Folder.
Enter ~/Library/Application Support/Google/Chrome/ in the text field, then press Go.
Locate the folder called "Default" in the directory window that opens and rename it as "Backup default."
Try opening Google Chrome again. A new "Default" folder is automatically created as you start using the browser.
You solved it but i wanted to tell that only default folder need to be changed.
I had the same issue. Owner of the directory was root, so this command helped me
sudo chown %username%:staff ~/Library/Application Support/Google
Add user to this folder ~/Library/Application Support/Google and set read and write,It solves my problem

Xcode 11 crashing on iPhone 13.1 app running

I updated Xcode today (Xcode 11.0), and now it crashes every time I try running any project on my iPhone (iOS 13.1).
Already tried:
Cleaning derived data
Cleaning library cache folder
Uninstalling xCode and downloading it again from the store
Restarting Mac
Restarting iPhone
Reconnecting iPhone trough itunes
The odd thing is that the Xcode activity doesn't show the "installing app" phase, it goes straight to "Running app on device" and then crashes. Running on the simulator works without a problem.
Already searched on the Apple forums and sent the report to Apple, but maybe there is something I can do to solve te issue.
Error log:
Process: Xcode [873]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.0 (14936)
Build Info: IDEFrameworks-14936000000000000~3
App Item ID: 497799835
App External ID: 832762837
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [873]
User ID: 502
Date/Time: 2019-09-25 11:47:10.497 -0300
OS Version: Mac OS X 10.14.6 (18G95)
Report Version: 12
Anonymous UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Time Awake Since Boot: 550 seconds
System Integrity Protection: enabled
Crashed Thread: 16 Dispatch queue: Mutex to protect _hasPerformedWorkerAction
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
com.apple.main-thread
ProductBuildVersion: 11A420a
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Invalid parameter not satisfying: aString != nil
UserInfo: (null)
Hints:
0: Calling block provided to DVTSyncPerformBlock() here:
0 DVTSyncPerformBlock (in DVTFoundation)
1 -[IDEExecutionRunnableTracker executionWantsHold:withError:] (in IDEFoundation)
2 -[IDERunOperationWorker _startWithRetrying:] (in IDEFoundation)
3 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_3 (in IDEFoundation)
4 __48-[DVTDispatchLock_Recursive performLockedBlock:]_block_invoke (in DVTFoundation)
5 _dispatch_client_callout (in libdispatch.dylib)
6 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
7 DVTDispatchBarrierSync (in DVTFoundation)
8 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
9 -[DVTDispatchLock_Recursive performLockedBlock:] (in DVTFoundation)
10 __44-[IDERunOperationWorker _startWithRetrying:]_block_invoke_2 (in IDEFoundation)
11 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
12 __DVTDispatchAfter_block_invoke (in DVTFoundation)
13 _dispatch_client_callout (in libdispatch.dylib)
14 _dispatch_continuation_pop (in libdispatch.dylib)
15 _dispatch_source_invoke (in libdispatch.dylib)
16 _dispatch_continuation_pop (in libdispatch.dylib)
17 _dispatch_async_redirect_invoke (in libdispatch.dylib)
18 _dispatch_root_queue_drain (in libdispatch.dylib)
19 _dispatch_worker_thread2 (in libdispatch.dylib)
20 _pthread_wqthread (in libsystem_pthread.dylib)
21 start_wqthread (in libsystem_pthread.dylib)
Backtrace:
0 __exceptionPreprocess (in CoreFoundation)
1 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
2 objc_exception_throw (in libobjc.A.dylib)
...
...
...
0x7fff63005000 - 0x7fff6300affb libunwind.dylib (35.4) <24A97A67-F017-3CFC-B0D0-6BD0224B1336> /usr/lib/system/libunwind.dylib
0x7fff6300b000 - 0x7fff6303afff libxpc.dylib (1336.261.2) <7DEE2300-6D8E-3C00-9C63-E3E80D56B0C4> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 1
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: 430
thread_create: 0
thread_set_state: 21
VM Region Summary:
ReadOnly portion of Libraries: Total=1.1G resident=0K(0%) swapped_out_or_unallocated=1.1G(100%)
Writable regions: Total=1.2G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.2G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 640K 5
Activity Tracing 256K 1
CG backing stores 1160K 2
CG image 1296K 95
CG raster data 56K 6
CoreAnimation 25.8M 164
CoreGraphics 8K 1
CoreImage 776K 81
CoreUI image data 3000K 34
CoreUI image file 688K 14
Dispatch continuations 8192K 1
Foundation 344K 5
Image IO 80K 5
JS JIT generated code 1.0G 3
Kernel Alloc Once 1036K 2
MALLOC 136.4M 116
MALLOC guard page 48K 10
Memory Tag 242 12K 1
Memory Tag 251 64K 3
Performance tool data 8208K 1 not counted in TOTAL below
SQLite page cache 128K 2
STACK GUARD 56.1M 23
Stack 19.2M 23
VM_ALLOCATE 360K 24
WebKit Malloc 1144K 3
__DATA 94.4M 755
__DATA_CONST 8K 1
__FONT_DATA 4K 1
__LINKEDIT 357.4M 236
__TEXT 723.4M 680
__UNICODE 564K 1
libnetwork 1152K 4
mapped file 169.2M 230
shared memory 676K 15
=========== ======= =======
TOTAL 2.6G 2547
Model: MacBookPro12,1, BootROM 186.0.0.0.0, 2 processors, Intel Core i5, 2,9 GHz, 8 GB, SMC 2.28f7
Graphics: kHW_IntelIris6100Item, Intel Iris Graphics 6100, spdisplays_builtin
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54424C41522D4E5544
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54424C41522D4E5544
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x133), Broadcom BCM43xx 1.0 (7.77.61.2 AirPortDriverBrcmNIC-1305.8)
Bluetooth: Version 6.0.14d3, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0512G, 500,28 GB
USB Device: USB 3.0 Bus
USB Device: Bluetooth USB Host Controller
USB Device: iPhone
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
So, I found that inside this folder:
~/Library/Developer/Xcode/iOS DeviceSupport
Xcode creates cache folders for all the physical devices symbols it paired.
This folder remains even if you uninstall Xcode, and the cache is reused even when you install other versions of the software.
Deleting the folders content made Xcode download the symbols again, run prepare debug support for the device phase and reset the device connection, solving the problem.
According to #alxlives 'Deleting the folders content made Xcode download the symbols again, run prepare debug support for the device phase and reset the device connection, solving the problem.' This solution solved the problem for me. Here is a terminal command to remove all contents inside of the folder.
rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport/
This commands remove all files that are located inside of the Device Support folderl.
1.Go to Project Folder
2.Right-click on xcodeproj
3.Click Show package Content
4.Delete xcuserdata directory
I was having this issue with Xcode 11.1 and an iPhone XR running iOS 13.2.3 (iPad running that OS version was fine). The accepted answer didn't work for me. Upgrading to Xcode 11.2.1 fixed it.
I was having the same crash on XCode 11.3 . I went on to "Show package contents" (right click on) of the ".xcworkspace" workspace directory and deleted "xcuserdata" folder. This resolved the crash for me.

Electron / Quasar - how to run a Mac app after signing & sandboxing?

I have a Quasar / Electron Mac app which allows the user to click on a snippet and paste it into the last viewed app (e.g. Mail etc).
When I build the app for the mas (Mac App Store) platform without signing and sandboxing, with the following settings in quasar.conf.js
electron: {
packager: {
asar: false,
appBundleId: '[app id]',
platform: 'mas',
version: '1.0.0',
buildVersion: '4'
}
}
... and the following build command:
quasar build -m electron
Then the generated app file runs fine when I double click it.
However, if I sign and sandbox the app, with the following settings in quasar.conf.js:
electron: {
packager: {
asar: false,
appBundleId: '[app id]',
osxSign: {
'entitlements': 'src-electron/default.entitlements.mas.plist'
},
platform: 'mas',
version: '1.0.0',
buildVersion: '4'
}
}
... with this default.entitlements.mas.plist file:
<?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.network.client</key>
<true/>
</dict>
</plist>
... and the same build command:
quasar build -m electron
Then, when I double click the generated app file, it quits straight away with the following message:
Edit: Clicking Report reveals the following message:
PROCESS: Email Snippets [90262]
Path: /Applications/MAMP/*/Email Snippets.app/Contents/MacOS/Email Snippets
Identifier: com.dannyconnell.emailsnippets
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Email Snippets [90262]
User ID: 501
Date/Time: 2018-11-03 21:14:01.171 +0000
OS Version: Mac OS X 10.13.6 (17G65)
Report Version: 12
Anonymous UUID: E00B5535-E6DC-B81E-1DCC-43B629EDC468
Sleep/Wake UUID: B3B79D2B-F30B-47B0-A980-0822EFC30745
Time Awake Since Boot: 90000 seconds
Time Since Wake: 480 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 0000000103992000-0000000103993000 [ 4K] r-x/rwx SM=COW
Thread 0 Crashed:
0 ??? 0x000000011127d19c _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: 0x00007ffeec26db20
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x000000011127d19c rfl: 0x0000000000000200 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x00000000
Trap Number: 0
Binary Images:
0x103992000 - 0x103992ff7 +??? (0) <447A1052-3F46-3E1B-BAC8-64F49EDE036E> (null)
0x11127c000 - 0x1112c6acf +??? (551.4) <8A72DE9C-A136-3506-AA02-4BA2B82DCAF3> (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: 58409
thread_create: 0
thread_set_state: 54
VM Region Summary:
ReadOnly portion of Libraries: Total=432K resident=0K(0%) swapped_out_or_unallocated=432K(100%)
Writable regions: Total=8404K written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=8404K(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
STACK GUARD 56.0M 2
Stack 8192K 2
__DATA 228K 4
__LINKEDIT 128K 3
__TEXT 304K 3
shared memory 8K 3
=========== ======= =======
TOTAL 64.7M 11
Model: MacBookPro12,1, BootROM MBP121.0177.B00, 2 processors, Intel Core i5, 2.7 GHz, 8 GB, SMC 2.28f7
Graphics: Intel Iris Graphics 6100, Intel Iris Graphics 6100, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54414C41522D4E5544
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1867 MHz, 0x80AD, 0x483943434E4E4E424C54414C41522D4E5544
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x133), Broadcom BCM43xx 1.0 (7.77.37.31.1a9)
Bluetooth: Version 6.0.7f10, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256G, 251 GB
USB Device: USB 3.0 Bus
USB Device: Internal Memory Card Reader
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
If I then package the app using electron-osx-flat:
electron-osx-flat "dist/electron-mat/[app name]-mas-x64/[app name].app" --verbose
.. and double click the pkg file to install it, then the app installs successfully. But when I click the app in Applications, it again quits straight away with the message in the image above.
Edit: Also, if I run the executable within the .app file in Terminal, I just get the message:
Killed: 9
However, when I submit this generated pkg file for review, the app basically works for the reviewer, but the copy and paste functionality is not working.
I believe this is to do with missing entitlements in the default.entitlements.mas.plist file.
However, I would like to be able to test for these kinds of issues myself, before submitting to the app store.
How can I run and test my app once it is signed and sandboxed?
Thanks to #miadz for pointing me in the right direction.
Here's what you need to do to run your Electron app fully sandboxed (as it will appear to the Apple Review Team, with all entitlements applied):
1) Firstly, you need a 2nd Mac on which to test your app
2) Add your 2nd Mac as a listed device on the Apple Developer site (Account > Certificates, IDs and Profiles > macOS > Devices > all). You will need your Mac's UUID which you can find from your menu bar in Apple > About This Mac > Overview > System Report...
3) Generate a Mac Development Provisioning profile for your app on the Apple Developer site (Account > Certificates, IDs and Profiles > macOS > Provisioning Profiles > Development) and make sure you select your 2nd Mac as a device. If you already have a development provisioning profile, then edit it and select your 2nd Mac under Devices.
4) Download your provisioning profile and place it in the root of your Quasar / Electron project
5) On your development Mac, build your app for the mas platform without signing, e.g.
electron: {
packager: {
asar: false,
appBundleId: '[app id]',
platform: 'mas',
version: '1.0.0',
buildVersion: '4'
}
}
then...
quasar build -m electron
6) Sign your generated app for development with electron-osx-sign (you may need to npm install electron-osx-sign -g first):
electron-osx-sign "dist/electron-mat/[app name]-mas-x64/[app name].app" --platform=mas --type=development --entitlements="src-electron/default.entitlements.mas.plist" --provisioning-profile="[app name]_Mac_Development.provisionprofile"
7) Send the generated .app file to your 2nd Mac and run

Testing the Mac Installer Package using Xcode 6

Before submitting my Mac App to the App Store I am used to test the installation package following
the procedure described here:
Testing the Mac Installer Package - Apple documentation
This mainly involve archiving the app, exporting as Mac Installer Package and installing it using:
sudo installer -store -pkg .... -target /
Since I updated to Xcode 6 I always get a signature error when I start the app [EXC_CRASH (Code Signature Invalid)]:
Process: ......... [1749]
Path: /Applications/.........
Identifier: ......
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: .......... [1749]
User ID: 501
Date/Time: 2014-11-07 18:52:45.292 +0100
OS Version: Mac OS X 10.10 (14A389)
Report Version: 11
Anonymous UUID: 142A2C49-B327-E26A-0DE4-0CCB99AC1DC0
Sleep/Wake UUID: 174FDF51-B783-4172-952B-EB8E5B07D436
Time Awake Since Boot: 2700 seconds
Time Since Wake: 690 seconds
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
kernel messages:
VM Regions Near 0x7fff75cbe0a8 (cr2):
__LINKEDIT 00007fff68263000-00007fff68277000 [ 80K] r--/rwx SM=COW /usr/lib/dyld
--> Submap 00007fff70000000-00007fff80000000 [256.0M] r--/rwx SM=PRV process-only VM submap
unused shlib __DATA 00007fff749e7000-00007fff76f76000 [ 37.6M] rw-/rw- SM=COW system shared lib __DATA not used by this process
Thread 0 Crashed:
0 dyld 0x00007fff681f4000 _dyld_start + 0
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000000000000d rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x00007fff556dcb50
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x00007fff681f4000 rfl: 0x0000000000000201 cr2: 0x00007fff75cbe0a8
Logical CPU: 0
Error Code: 0x020000f4
Trap Number: 133
Binary Images:
0x7fff681f3000 - 0x7fff68229837 dyld (???) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
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: 1226
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=300K resident=288K(96%) swapped_out_or_unallocated=12K(4%)
Writable regions: Total=8420K written=0K(0%) resident=12K(0%) swapped_out=0K(0%) unallocated=8408K(100%)
REGION TYPE VIRTUAL
=========== =======
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 8K
VM_ALLOCATE (reserved) 4K reserved VM address space (unallocated)
__DATA 228K
__LINKEDIT 80K
__TEXT 220K
mapped file 1044K
shared memory 4K
=========== =======
TOTAL 65.6M
TOTAL, minus reserved VM space 65.5M
Model: MacBookPro11,1, BootROM MBP111.0138.B11, 2 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.15.124.12.8)
Bluetooth: Version 4.3.0f10 14890, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: Internal Memory Card Reader
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2
Exactly the same app as not this problem using Xcode 5.
Any suggestion?
This is getting me crazy since I am not confident to submit the app to Apple.
I eventually contacted Apple support and they answered that the procedure is:
1) Export your app as a Mac Application
2) productbuild --component <APP>.app /Applications <APP>.pkg --sign "3rd Party Mac Developer Installer:"
3) sudo installer -store -pkg <APP>.pkg -target /
The documentation doesn't mention point #2!
This doesn't seem to affect app review. If your archive is validated, you can just submit your app and it should work fine when downloaded from the app store.
Apple's Technical Q&A QA1884 document (dated 2015-01-26) covers this topic:
When I run my Mac app, it crashes immediately, and the crash log says Exception Type: EXC_CRASH (Code Signature Invalid). What is going on here?
... distribution builds of Mac apps cannot be run directly; they are for submitting to iTunes Connect for app review only.
The document suggests some work arounds.

Resources