I am developing a macos menu bar app, and for some reason, when I archive, notarize & export the app to my Applications
folder and run the app, it crashes instantly. When I use the Console app, I see the following error messages:
Invalidating assertion 378-345-32541 (target:[app<application.com.myname.myapp.15107866.15107872(501)>:21599]) from originator [osservice<com.apple.coreservices.launchservicesd>:345]
RBSStateCapture remove item called for untracked item 378-345-32541 (target:[app<application.com.myname.myapp.15107866.15107872(501)>:21599])
When I run the app in Xcode (in debug mode & release mode), there are no Warning messages except this one for Sparkle (I am relatively sure it is unrelated to my issue but including here for brevity):
Warning: Background app automatically schedules for update checks but does not implement gentle reminders. As a result, users may not take notice to update alerts that show up in the background. Please visit https://sparkle-project.org/documentation/gentle-reminders for more information. This warning will only be logged once.
Here is a link to the .app
file binary.
I gave my app’s binary to a friend and faced these error messages in Console app, but I have not been able to reproduce them myself.
Sandbox: myapp(9044) deny(1) file-read-data /Users/user/Downloads/myapp.app
IDENTITY_ATTRIBUTION: Failed to copy signing info for 9044, responsible for /private/var/folders/nt/40hq8tkx0tgb7c4fw5_n79wr0000gn/T/AppTranslocation/345F7E81-EE9E-4ADF-A66F-589A6647291D/d/myapp.app/Contents/MacOS/myapp: #-67065: Error Domain=NSOSStatusErrorDomain Code=-67065 "(null)"
I have tried the following to stop the app from crashing, all to no avail:
- Clean Xcode
- Delete Xcode Derived Data
- Restart Mac
- Build app with an alternative bundle identifier
- Removed Sparkle package and re-archived, notarized app
Additional context
- Xcode 15.2
- MacOS Sonoma 14.5
- Xcode minimum deployment: 13.0
Package Dependancies:
- LaunchAtLogin (main branch)
- RNCryptor (5.1.0)
- Sparkle (2.6.3)