문제

I'm attempting to bring a Mac app up-to-date with the new sandboxing rules in Lion. However, despite requesting com.apple.security.files.user-selected.read-write permissions, I'm getting errors. When I look in the logs, I see deny file-write-create /Users/thom/Desktop/Filename.blah-journal.

This makes sense given the sandboxing rules - the user selected a location for the SQLite store, and so writing to that location is allowed. However, SQLite maintains its journal file alongside the actual file, and writing to that is forbidden.

In which case, how can an SQLite-backed NSPersistentDocument ever work in a sandboxed environment?

도움이 되었습니까?

해결책

I've had the same issue while exporting Quicktime movies, as it writes an "atomic" working file that fails under sandboxing. All you can do is file a radar at this point.

다른 팁

Warning: the workarounds for this floating on the Internet DO NOT work on Mountain Lion.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top