iPhone can’t find SQLite database but simulator can
Now our company working on iPhone application to track weight. The application user SQLite database as a data source for weight values.
We tested application on iPhone simulator and it worked fine, it was no problems with opening database, reading and writing records in SQLite database.
But after deployment on iPhone device application stop working. For some reason application was not able to find database on iPhone device. Googling and asking questions on StackOverflow did not helped, and our developer continue investigate around this issue.
And finally the problem was solved. It was small defect in our application with upper and lowercase names.
The difference between iPhone device and iPhone application was the following: iPhone cares about register of filenames, but iPhone device does not care. So the name “database.sqlite” and “Database.sqlite” was different files on iPhone device.
As we understand later it’s a normal behaviour for UNIX system, but for developers who come from Windows it’s a little bit weird behaviour.
