goal c – why my fileManager:copyItemAtURL trigger “Permission Denied” challenge after improve ios 16.5


my app use objective-c [fileManager copyItemAtURL:xxx toURL:xxx error:&error] to repeat recordsdata from app container to sandbox. Beforehand it labored properly, however after my cellphone improve to 16.5+, it all the time meet challenge, as

open on /var/cell/Containers/Knowledge/Utility/xxx/Library/NoCloud/www/apps/myapp/plugins/cordova-plugin-file/www/browser/isChrome.js: Permission denied
Error Area=NSCocoaErrorDomain Code=513 ““isChrome.js” couldn’t be copied since you don’t have permission to entry “browser”.” UserInfo={NSSourceFilePathErrorKey=/non-public/var/containers/Bundle/Utility/xxx/myapp.app/www/plugins/cordova-plugin-file/www/browser/isChrome.js, NSUserStringVariant=(
Copy
), NSDestinationFilePath=/var/cell/Containers/Knowledge/Utility/xxx/Library/NoCloud/www/apps/myapp/plugins/cordova-plugin-file/www/browser/isChrome.js, NSFilePath=/non-public/var/containers/Bundle/Utility/xxx/myapp.app/www/plugins/cordova-plugin-file/www/browser/isChrome.js, NSUnderlyingError=0x283710a80 {Error Area=NSPOSIXErrorDomain Code=13 “Permission denied”}}

I’ve large folder cordovaplugins to repeat, I’ve tried so as to add for loop to repeat subfolders one after the other, it get the identical consequence, some subfolder has permission denied challenge, however totally different time run could get totally different subfolder permission challenge.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles