I have two apps which allow the user to select a directory and scan all the contained files. When selecting the user home folder, there is no problem on macOS 10.14 Mojave: with the NSPhotoLibraryUsageDescription key set, the apps are able just fine to access all the files inside "Photos Library.photoslibrary" package. On macOS 10.15 Catalina, now I get an error that I don't have the permission to access those files, running the exact same apps.
Is there any other Info.plist key that I need to add, or something else that I need to do in order to make it work?
I enabled "Signing and Capabilities > Hardened Runtime > Photos Library" and now it works on 10.15 as well.