Because my other thread ( https://forums.developer.apple.com/forums/thread/765433 ) is not getting any response to this pressing matter, please forgive me reviving this older thread.
Has there been a change to security-scoped fileURL bookmarks in macOS Sequoia (like a new entitlement, for example)?
I've been getting multiple reports of my app just not being able to create security-scoped bookmarks for file URLs, although my code for this has not changed.
There are two cases: for some customers, it doesn't work at all, for others, it works (to quote one) "like 40% of the time". There's no discernible pattern to it working or failing (like, internal/external disks, file types, etc).
Naturally, I cannot reproduce this issue myself, but I do know that it's not just the Mac App Store version, it also happens for my demo and Setapp versions of the app (which also run in the app sandbox).
When the bookmark creation fails, it is accompanied by this line in the logs:
Failed to retrieve app-scope key
A restart fixes the issue temporarily (most but not all of the time), sometimes even just a relaunch of my app. But that's just an annoying temporary fix, and the issue reoccurs after a while.
It definitely seems to be tied to macOS Sequoia - I've not received reports of it not working on older versions of macOS.
Thank you for any and all insights,
– Matthias