Hi @Jellobus
In your first line of code are you trying to set the "Text1" custom property of a stack (however this stack is called "data.db") to the contents of fld "data"? If so then does this really work? I've never heard of a stack with a ".db" file extension ... Same thing for your second line of code - are you trying to save the stack file in the documents folder? In which case could it be the ".db" extension that is causing problems.
Saving files, even binary files, to specialFolderPath("documents") should be fine so I don't think there should be any sandboxing/security issues - downloading files that Apple thinks might be 'executable' during a version update is another thing, Apple doesn't like that at all.
I'm guessing you are using a stackfile which you keep in the documents folder as a data store, this is a very common thing to do and should work fine - I'm also guessing that when you debug it on the device (using lots of 'answer' commands) you'll find the problem - but that ".db" file extension does worry me...
Code: Select all
set the Text1 of stack "specialFolderPath("documents")/data.db" to fld "data"
save stack "specialFolderPath("documents")/data.db"
EDIT
Just reread your original query which was about App Store Rejection - apologies, I'm now going to assume that those lines of code do work...
It is strange they are objecting to what you have saved in your documents folder - maybe their reviewer also didn't like the ".db" file extension

But files in that folder can indeed be backed up by iTunes. If you were to instead move to specialFolderPath("cache") everything should still work for you with the exception that files would not be backed up by iTunes - doing this would be one way of keeping them happy (as long as it didn't mess up some other part of your app). I think there is also a 'flag' you can set with individual files that marks them to iTunes as ones that shouldn't be backed up - at the moment I can't remember what it was, if I do I'll make another edit here - but for a quick fix I'd keep their reviewer happy and move your stuff to "cache"