sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.34k stars 1.04k forks source link

Not sure Sparkle being initialized #2485

Closed coryl closed 7 months ago

coryl commented 7 months ago

Description of the problem

I'm following the Sparkle setup documentation by creating an Object in Storyboard, and wiring a NSMenuItem to the checkForUpdates action.

I'm at the phase now where I'm testing. I've lowered my build version, published my appcast.xml, uploaded my .zip, and I'm ready to go. Clicking "Check for Updates" works perfectly.

However I'm trying to understand Sparkle's default behaviour (I want to see the automatic ask for permission after loading the app twice like the documentation says), however I can't trigger it.

To do that, I'm wiping my all my SU_____ keys in my preferences plist (/Users/user/Library/Preferences/com.myorg.myapp.plist). Then I'm starting the app (in Xcode), quitting the app, again and again. I noticed no new entries into my preferences plist ever gets added unless I manually run checkForUpdates via the menu item.

My app's Info.plist has no keys set for now, as I just want to see the default behaviour.

Its almost as if Sparkle is never running, never gets initialized. I want to see Sparkle check for updates on its own, or at least ask me to check automatically. What am I missing here?

Do you use Sandboxing in your app?

No

Version of Sparkle.framework in the latest version of your app

2.5.2

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

Not sure if this is relevant, but I see for process: kernel

Library Validation failed: Rejecting '/Users/user/Library/Developer/Xcode/DerivedData/myapp-cgooyrpjralhmpbjlpowzoomzkoa/Build/Products/Debug/Sparkle.framework/Versions/B/Sparkle' (Team ID: none, platform: no) for process 'myapp(97721)' (Team ID: EUFMJ95U79, platform: no), reason: mapping process and mapped file (non-platform) have different Team IDs