Can you update a file in the application bundle?
- by ian1971
Is it possible to update a file stored in an applications bundle programmatically?
Basically I want to get a remote file and overwrite one of the bundle files with it (a sqlite database in fact).
This works fine on the simulator but on the device it does not work, though it does not error either (it just doesn't seem to actually overwrite).
I know I can work around it by copying it do the user folder instead and then getting the code to check their first for the file before using the bundle one but I was interested to know whether it is possible to update a bundle file at all or am I just doing something wrong?
Thanks