While running my project with swift code in XCode 6.3 & XCode 7, I got this error:
The file “***.app” couldn’t be opened because you don’t have permission to view it
My app is not launching anymore. I checked if the compiler setting is right. Executable name & bundle name is also proper.
Cleaned the project couple of times, removed the XCtest target as well.
a) Right-click on the file which you're unable to access and select Properties. b) Click on 'Security' tab and under 'Group or user names' click on 'Edit'. c) Click on 'Add' and type 'everyone'. d) Click on 'Check names' and then click 'OK'.
If you don't have permission to open a file or folder, you may be able to change the permissions settings. On your Mac, select the item, then choose File > Get Info, or press Command-I. Click the arrow next to Sharing & Permissions to expand the section.
To change file and directory permissions, use the command chmod (change mode). The owner of a file can change the permissions for user ( u ), group ( g ), or others ( o ) by adding ( + ) or subtracting ( - ) the read, write, and execute permissions.
The file "MyApp.app" couldn't be opened because you don't have permission to view it. This error appears no matter what simulator or device I target. Has anyone else run into this problem and found a solution?
It is the native solution provided by Mac to repair various issues related to the connected disk. Once you scan the disk for any unwanted problem, you can fix the "JPG file couldn't be opened because you don't have permission to view it" error as well. Here's how you can do it. If your Mac is already turned on, then you need to restart it first.
To elaborate, you may have multiple accounts on Mac device and it is possible that you might have installed a third-party application while logged in another user account; therefore, install applications with your normal user account i. Delete some files in the library
This is a re-emergence of a problem people were having in 2014 with Yosemite (see this link for that thread: Preview issues..."couldn’t be opened because you don’t have permission to view it."
This can sometimes be because of a corrupted error in your Info.plist
file. Try to create a new project with the same name in Xcode
and then replaced the your current projects Info.plist
with the new one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With