So that my mac os app can save screenshots to the pictures folder, I have added the following to my build.settings…
entitlements = { [“com.apple.security.assets.pictures.read-write”] = true, },
However apple rejected it saying the following:
Your application accesses the following location(s):
_‘~/Pictures/Picture 1.jpg’
The majority of developers encountering this issue are opening files in Read/Write mode instead of Read-Only mode, in which case it should be changed to Read-Only.
Other common reasons for this issue include:
- creating or writing files in the above location(s), which are not valid locations for files to be written as stated in documentation.
- writing to the above location(s) without using a valid app-id as a container for the written files._
So I assume I need to save the screenshot to ~/Pictures/<app-identifier>
…How to do I go about doing this if using the display.captureScreen(true)?
And to confirm, if i only save (write) screenshots and not load (read) them do I still use the com.apple.security.assets.pictures.read-write in my build.settings?
Any help appreciated.