On 9 May, 2013, at 1:56:29 PM HKT, Jerry Krinock <[email protected]> wrote: > >> sandboxd gives this message on the console: >> >> deny file-write-create /Users/jimmcgowan/Desktop/.AGPS >> Examples.rtd.migrationdestination_41b5a6b5c6e848c462a8480cd24caef3 > > I've never worked with a sandboxed document, but the above error says that > Core Data is attempting to write to the regular Desktop, which of course is > not allowed in the sandbox. It shouldn't be doing that, unless your document > was on the regular Desktop to begin with.
The original document was on the desktop. A user could have their documents anywhere. > The question is: "Why is Core Data trying to create a file on the regular > Desktop?" > The document in the old format that this particular test used was located at ~/Desktop/AGPS Examples.rtd After migration, core data tries to write the store to ~/Desktop/.AGPS Examples.rtd.migrationdestination_41b5a6b5c6e848c462a8480cd24caef3 The docs mention writing to a file with '~' suffix, but this doesn't happen (unless writing to the path above is an intermediary step, but the docs make no mention of this). Core Data document migration will try to write the migrated store to the same directory as the original, but the sandbox blocks this. So, does anyone know of any workaround? Jim _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
