Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

caldwelljason

macrumors member
Original poster
Jul 9, 2008
44
2
I am ready to deploy my first update to an app I wrote. But when I deploy it to my test units using Organizer, it removes everything and reinstalls. So the sqlite database that stores the user's data is removed and copied over by a blank version.

How can I prevent that from happening? Is it happening because I'm in a dev environment? Can I test my deployment some other way?

Any help would be appreciated.
 

caldwelljason

macrumors member
Original poster
Jul 9, 2008
44
2
Distributing the DB

I am including the DB as a resource. Then when the app runs, it checks for the existence of the database in the user's directory. If it doesn't find it, it copies it from the resources.
 

caldwelljason

macrumors member
Original poster
Jul 9, 2008
44
2
nevermind...

Turns out iTunes was removing the app when I plugged in the device. My subsequent install installed a fresh copy and we started over.

I stopped the iTunesHelper application on my Mac and the problem cleared itself right up!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.