My experience with this indicates that you also have to enclose the call to URL(resolvingBookmarkData:) between startAccessingSecurityScopedResource() and stopAccessingSecurityScopedResource() for it to work reliably. After much searching, I only found a passing reference to this fact somewhere on the web (which, to my knowledge, appears not to be properly documented) and suddenly, a lot of issues I was having went away as if by magic.
Topic:
App & System Services
SubTopic:
Core OS
Tags: