ijoshsmith / abandoned-strings

Command line program that detects unused resource strings in an iOS or OS X application.
MIT License
377 stars 67 forks source link

String(contentsOfFile: filePath) failed : couldn’t be opened because you don’t have permission to view it. #19

Open vassily-fr opened 2 years ago

vassily-fr commented 2 years ago

Searching for abandoned resource strings… cannot read file!!! : Error Domain=NSCocoaErrorDomain Code=257 "The file “xxxx” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/Users/myname/Documents/MyProject/Pods/xxxxxx.swift, NSUnderlyingError=0x7f8afd9f3e10 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}

I tryid every thing I could think of : chmod X on AbandonString.swift chmod -R 777 on project folder and execute command with "sudo"

🤷‍♂️

Thanks for help.