external in app repeatedly asks permission to access Documents folder, still fails
Has anyone experienced issues with an app being unable to access the Documents folder on Mac?
Additional details: I’m working on a Max patch that incorporates objects from the Orchidea package (the patch I'm working on is called MaxOrch, for those familiar with the project). At least one of the Orchidea objects in the patch, upon launch, attempts to access a database in a specific location in the Documents folder. This works perfectly well with the patch. However, when I build an app from the patch it seems to fail.
More details: The app does, as expected, ask for permission to access Documents folder upon launch. However even though I grant that permission, and see it reflected in the System Settings (Files and Folders, Documents switch is on for the app), it asks again every launch. I also get an error saying it was unable to load the database. This error does not appear with the patch, and the database loads successfully.
Singing the app used to fix this, but no longer does, probably after a system upgrade. To sign it I’ve been using:
sudo xattr -cr mystandalone.app
codesign -s - --deep -f mystandalone.app
Finally: the app can access the correct database within the Docs folder when I do it explicitly, through the use of a load command. It only fails to autoload upon launch.
Behavior is the same between Max 8.x and 9.0.3
My system is stuck at 14.7.2 for now (thanks Finale).
Anyone have any advice on this? I’m stumped. Thanks in advance!