Writable files and Documents folder - Help please

I’m really struggling to understand this one and would appreciate any and all comments.

During the development of my app I was looking through this forum and the general consensus was that the files in your project directory are read only and that if you want to change or write to a file then you need to copy it to “system.DocumentsDirectory”.

My app was rejected last night because of this.

Apple says :
“The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by iCloud.”

I say :
The file I put there is a database filled with words. It’s not as simple as this though. During game play I edit this database with stats related to each and every word. In the same database I also store the current game in progress data and the high score table too.

So…
I have a database, 50% pre-created and 50% updated during game play.
I therefor need this database to be read-write.
The documents directory is the correct read/write location!?
But Apple says I may not copy my file there???.. I may only store new files and edit files etc that are there because of my app!?

As for the iCloud back up point, YES, I do want iCloud to backup the database for the user as it can hold years worth of stats relating to the game and the stats of all the words in the database.

Let’s say that this database did NOT contain the words. Let’s say I find a way to store the words in my app folder and the high score table and game stats in the documents directory… I would still on launch of the app check if the high score / game stats file exists in the documents directory yet and if not, copy it there. After all, a high score table doesn’t start blank.
The only difference between this scenario and my current one is the size of the file. The high score table would be a few K but the word database is around 13 MB.

I really don’t get this one. [import]uid: 126708 topic_id: 25811 reply_id: 325811[/import]

Hey there, I believe this is related to this: http://developer.anscamobile.com/forum/2012/04/13/donotbackup-flag-comply-new-apple-guidelines-downloaded-content-also-allow-folder

See Eric’s (ewing) post - should have a fix ASAP :slight_smile: [import]uid: 52491 topic_id: 25811 reply_id: 104384[/import]

Thanks.

I split my single database up into two separate databases and LOST some “bragging rights functionality” in the process as the larger one is now read-only.

Now I only use 10 KB, instead of 13 MB.

I have already submitted an appeal to the review board and they say I may not upload a new version until they get back to me.
This is really frustrating as everything they do takes a week.

Now I have to wait till they get back to me, THEN upload my new version, THEN wait ANOTHER week!

Anybody know if it’s possible to cancel an appeal? [import]uid: 126708 topic_id: 25811 reply_id: 104396[/import]

I’m using a sqlite database wich is copied to the Documents directory in my game, it’s only 27 kb, but i need read/write rights on that database.

You think that size will be a problem?
[import]uid: 50459 topic_id: 25811 reply_id: 104459[/import]

I very much doubt it.
If you’re using the DB to keep high scores and/or game progress then i’m sure it’s 100% [import]uid: 126708 topic_id: 25811 reply_id: 104483[/import]

@AdamApple, I think what you are doing should be OK. Maybe you need to explain to Apple the details above, they may think that it can be reproduce by copying the file again. [import]uid: 56623 topic_id: 25811 reply_id: 105876[/import]

The donotbackup flag support was added to the latest daily build, for everyones information :slight_smile: [import]uid: 84637 topic_id: 25811 reply_id: 105890[/import]