I have an existing application using Core Data on the iPhone. Occasionally there would be updates to the application’s data delivered as updates to the App Store. In my perfect world, building an application to edit the data in the updates with an OS X application and copying the sqlite database to my iPhone app bundle would be a relatively pain-free way to do this.
Is it possible to move sqlite database (assuming they use the same data model) between OS X and iPhone OS?
What are the things I should watch out for that isn’t portable between (like 32-bit vs. 64-bit data)?
Are there better alternatives that I’m overlooking?
The SQLite format is identical between Mac and iPhone applications with the same data model. It’s pretty trivial to generate a Mac application to edit your database (I do this for my iPhone application). In fact, you can take your data model and quickly drag and drop an interface for it (from the Core Data Programming Guide FAQ):
I’d also check out Core Data Editor, which loads in your compiled managed object model and lets you edit your database from that.