Closed nilekell closed 1 month ago
Please symbolicate your crash log or enable debug info when running your app outside of Xcode, and find the line of code / backtrace that is responsible for it crashing from your crash report.
There are no indications this crash is related to Sparkle at all. It looks like a crash in your app's code, maybe from a Swift force unwrap or a failure assertion or what not. If there is anything here that is actionable on Sparkle's end, I will re-open.
There are no logs when I enable debug info and run the app outside of xcode.
When an app crashes and is not attached to the debugger the OS generates a crash report. You have that crash report if you look in the Crash Report section of the Console app. If you don’t compile the binary with debug symbols embedded you’ll have to symbolicate the crash report with your external dSYM debug symbols (look this up). You are focusing too much on log messages when you should be focusing on the crash report which will tell you why the app crashed, including the thread that crashed, its backtrace, and the specific file/line of code (after symbolication) causing the crash.
Ok thank you. I have identified the crash report in Console app, and getting the typical
Unexpectedly found nil while unwrapping an Optional value
Should also be able to identify the line of code in your app triggering that if you haven’t found out already.
Thank you, yes I have found the issue and its unrelated to Sparkle. It was down to the fact that I thought environment variables from the scheme are injected into release builds outside of xcode, when they are not.
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:
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):
I have tried the following to stop the app from crashing, all to no avail:
Additional context
Do you use Sandboxing in your app?
Yes
Version of
Sparkle.framework
in the latest version of your app2.6.3
Version of
Sparkle.framework
in the old version of app that your users have (or N/A)N/A
Sparkle's output from Console.app
Steps to reproduce the behavior
Download the App binary.
Move the app to the
Applications
folder and run the app.The app will crash immediately appearing as if you never attempted to run the app. To view the logs I pasted at the top of this issue, you can open the 'Console' app > Window > Action > Include Info, Debug messages > Search filter for app name: 'Ocheeflow'.