HomeiOS Developmentgoal c - why my fileManager:copyItemAtURL trigger "Permission Denied" concern after improve...

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


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

open on /var/cellular/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=/personal/var/containers/Bundle/Utility/xxx/myapp.app/www/plugins/cordova-plugin-file/www/browser/isChrome.js, NSUserStringVariant=(
Copy
), NSDestinationFilePath=/var/cellular/Containers/Knowledge/Utility/xxx/Library/NoCloud/www/apps/myapp/plugins/cordova-plugin-file/www/browser/isChrome.js, NSFilePath=/personal/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 huge folder cordovaplugins to repeat, I’ve tried so as to add for loop to repeat subfolders one after the other, it get the identical end result, some subfolder has permission denied concern, however completely different time run could get completely different subfolder permission concern.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments