Strange behavior with App Sandbox and CoreData Document

  • Hi all,

    I'm making some tests with a new from scratch CoreData Document based application in Mac OS X 10.7.4 with autosave enabled and Sandbox. (I must "sandboxing" an existing application for the AppStore upload).
    All works fine with binary or xml type but not with SQLite.

    Step 1 - I can create a new document, add some records and save it in binary, xml or SQLite format.
    Step 2 - I can open a document, add or delete some records, closing the doc (autosave is on) will save the binary and xml one perfectly but not the SQLite type -> here the error log:

    2012-05-22 18:27:01.481 SandboxDoc Test[311:403] Core Data: annotation: -executeRequest: encountered exception = Updating max pk failed:  with userInfo = {
        NSSQLiteErrorDomain = 14;
    }

    22.05.12 18:27:01.480 sandboxd: ([311]) SandboxDoc Test(311) deny file-write-create /Users/marco/Desktop/Untitled.sqlite-journal

    I'm using the default "Open…" and "Save…" actions, no subclassing of openDocument or saveDocument methods so it should use the right "protected" path: ~/Library/Containers/theAppName/Data/Desktop/Untitled.sqlite

    Is it a known bug or am I missing something big?
    Thanks

    Marco
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today