Can you update a file in the application bundle?
Posted
by ian1971
on Stack Overflow
See other posts from Stack Overflow
or by ian1971
Published on 2010-05-11T09:31:59Z
Indexed on
2010/05/11
9:34 UTC
Read the original article
Hit count: 269
iphone
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
© Stack Overflow or respective owner