My app has been using the Objective-C SDK without problem for many years. Currently I am running ObjectiveDropboxOfficial (6.3.2)
My app uses the API to allow the user to browse their Dropbox account and download PDF files.
Now on the iOS 16 beta (beta 3 is the first I've tried), I am getting permission errors like what was reported years ago here, e.g. https://github.com/dropbox/dropbox-sdk-obj-c/issues/125. I have tried setting forceForegroundSession:YES, but it does not fix the issue. The issue occurs both on the simulator and on a physical device (iPad)
I have included the error message below for completeness. I would greatly appreciate help with this. My app is essentially useless without working Dropbox capability.
Thanks!
DropboxClientError[{
NSError = "Error Domain=NSCocoaErrorDomain Code=513 \"\U201c258D96CC-96B9-4747-A85D-26DE78A98B9E\U201d couldn\U2019t be moved because you don\U2019t have permission to access \U201cSystem\U201d.\"
UserInfo={NSDestinationFilePath=/%2Fvar%2Fmobile%2FContainers%2FData%2FApplication%2F06070902-D1B0-47D2-80C9-20B6AE5112D7%2FDocuments%2FBetter Word-Eb (LEAD).pdf, NSUserStringVariant=Move,
NSFilePath=/private/var/mobile/Containers/Data/Application/06070902-D1B0-47D2-80C9-20B6AE5112D7/tmp/258D96CC-96B9-4747-A85D-26DE78A98B9E, NSUnderlyingError=0x282dfb2a0 {Error Domain=NSCocoaErrorDomain Code=513 \"\U201c258D96CC-96B9-4747-A85D-26DE78A98B9E\U201d couldn\U2019t be copied because you don\U2019t have permission to access \U201cSystem\U201d.\" UserInfo={NSSourceFilePathErrorKey=/private/var/mobile/Containers/Data/Application/06070902-D1B0-47D2-80C9-20B6AE5112D7/tmp/258D96CC-96B9-4747-A85D-26DE78A98B9E, NSUserStringVariant=(\n Copy\n), NSDestinationFilePath=/%2Fvar%2Fmobile%2FContainers%2FData%2FApplication%2F06070902-D1B0-47D2-80C9-20B6AE5112D7%2FDocuments%2FBetter Word-Eb (LEAD).pdf, NSFilePath=/private/var/mobile/Containers/Data/Application/06070902-D1B0-47D2-80C9-20B6AE5112D7/tmp/258D96CC-96B9-4747-A85D-26DE78A98B9E, NSUnderlyingError=0x282dfae50 {Error Domain=NSPOSIXErrorDomain Code=1 \"Operation not permitted\"}}}}";