"Attempting to upgrade to (null)" when updating a preference pane

Asked by Zach Paine

I'm trying to update a preference pane. I'm calling Sparkle within my preference pane's principal class. After configuring the appcast, I'm prompted to download a new version (0.2). I click download and install, but it fails. The system log says:

Sparkle Error (continued): Sparkle Updater: Possible attack in progress! Attempting to "upgrade" from 0.1 to (null). Aborting update.

This suggests to me that Sparkle is unable to read the version out of the bundle in the downloaded zip file, or is unable to locate the bundle. However, when I inspect the bundle in Finder, the version is correctly reported as 0.2. The bundle (prefPane) is located within a zip file, and is named the same as the bundle in which Sparkle is running. What am I doing wrong here?

Thanks!
-Zach

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Zach Paine
Solved:
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

I'm guessing you're storing your version in CFBundleShortVersionString rather than CFBundleVersion, the machine-readable field.

If that's not the case, then please send me a copy of the prefpane at <email address hidden>.

Revision history for this message
Zach Paine (zach-paine) said :
#2

I apologize, after looking at my zip file more carefully I realized that I didn't recursively add the prefpane when creating the file. Once I created the zip file properly, everything worked wonderfully. Thanks!