Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update .app using Sparkle with a different bundle-identifier

I am using Sparkle to update an application from 0.9.2 to 1.0.0.

In the new update, I have changed the CFBundleIdentifier of MyApp.app from com.MyCompany.MyApp to au.com.MyCompany.MyApp.

When I test downloading this update (through Sparkle which is inbuilt to MyApp.app), it downloads the update and then gives me a window with this message:

An error occurred while extracting the archive. Please try again later.

Is there any other way, apart from having users reinstall the application, to have Sparkle recognise the old CFBundleIdentifier and update it to the new one?

like image 976
eggy Avatar asked Nov 21 '13 00:11

eggy


People also ask

Can I change my bundle identifier?

Once your app is approved and available for download on the Apple App Store, your Bundle ID cannot be changed.

What is bundle identifier used for?

A bundle ID or bundle identifier uniquely identifies an application in Apple's ecosystem. This means that no two applications can have the same bundle identifier. To avoid conflicts, Apple encourages developers to use reverse domain name notation for choosing an application's bundle identifier.

Where is the bundle identifier XCode?

Open you project with XCode, select the top project item in the project navigator at the left. Then select TARGETS -> General. Bundle Identifier is found under Identity.


1 Answers

You can't change the identifier if you use .dmg for updates.

.zip with a DSA signature might work.

If you use .pkg (or .sparkle_guided.pkg) to deliver the update you can do whatever you want.

like image 142
Kornel Avatar answered Oct 22 '22 11:10

Kornel