views:

31

answers:

2

I have successfully downloaded an sqlite datafile from my testing app on my provisioned iPhone using the Xcode organizer. How might I upload an sqlite file to the iphone to replace the data store that I am using in my app?

A: 

You can't upload a file after installation in the same way that you can download it in the Organizer.

If you want to get a data file into the app, add it to your project's resources and rebuild.

Ken Aspeslagh
+1  A: 

I recently discovered the answer to this question: You can just include the relevant SQLite file in your app bundle, and copy the file onto the location of the actual SQLite file which Core Data uses for its data store.

Jason