Reputation: 2640
I have been working on an app and testing within the simulator in xcode and all working fine, reading from and saving to an SQLITE database.
I have now run this on an iPhone 5, and I can read in from the database fine, but saving to the database is not working.
There are no errors or crashes. Everything runs fine - just the data is not saved on the phone.
I have seen similar questions that are the other way round, working on the device but not the simulator!
Any thoughts or advice appreciated!
Upvotes: 1
Views: 971
Reputation:
I bet you are trying to update the database in the app bundle - you can't do that, the app bundle is read-only.
("But it worked in the simulator, it really did!" - well, on OS X and in the simulator, restrictions like this aren't always enforced. The simulator is a piece of useless crap, at least considering this point only.)
Upvotes: 2