Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
sqlite database works fine on simulator, but is readonly on device
Ack thanks to both of you! Somehow I've just never ended up needing to write to any files in the resources directory and hadn't realized they were readonly. Many thanks.
Sorry for picking up this thread, but I didn't want to start a new one, since I have a similar problem.
First, I've already chmoed MyApp.db (database) and my project folder /MyApp/ both to 777, but I still getting the same error as OP. How did you solved/solve this problem specially? Is it possible to set Resources to writable? If yes, how?
Sorry for picking up this thread, but I didn't want to start a new one, since I have a similar problem.
First, I've already chmoed MyApp.db (database) and my project folder /MyApp/ both to 777, but I still getting the same error as OP. How did you solved/solve this problem specially? Is it possible to set Resources to writable? If yes, how?
Thanks in advance!
You do not want to write to resources. "Resources" means the bundle, which will get replaced with a new version if you ever release an update/upgrade.
If your app needs to make changes to the database file, you should use vinced45's code to copy the database to the documents folder, and open it from there.
Replies
joe
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeThen read from the newly created path
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeFirst, I've already chmoed MyApp.db (database) and my project folder /MyApp/ both to 777, but I still getting the same error as OP. How did you solved/solve this problem specially? Is it possible to set Resources to writable? If yes, how?
Thanks in advance!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeIf your app needs to make changes to the database file, you should use vinced45's code to copy the database to the documents folder, and open it from there.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeThanks again!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome