Re: NSData -writeToFile: returns FALSE
Yeah, that's part of the TCC (transparency, consent and control) privacy stuff in Mojave and higher. Without Full Disk Access, your app is prevented from accessing some filesystem locations unless it has been explicitly or implicitly allowed by the user. That means that you're given an access right if you use an Open or Save As dialog to prompt the user to select a file or location, or if you ask the system for a temp folder for use by your app (AFAIK, you're not allowed to generically read or write to /tmp because that might allow you to see other applications' temp files). Oh - or if the user implicitly permits access by dragging or double-clicking a file to open it.toggle quoted messageShow quoted text
Apple has ratcheted up the number of folders that are protected this way in the last few OS releases. Mojave was fairly permissive - it only refused to let you see Contacts, Calendar, Messages, Photos, Mail and Safari folders, I think. Catalina added Desktop, Documents, Downloads, iCloud Drive and removable volumes, which ends up impacting a lot more software.
On Dec 10, 2020, at 7:17 PM, Carl Hoefs <firstname.lastname@example.org> wrote: