Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The file “***.app” couldn’t be opened because you don’t have permission to view it

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.

like image 833
ibiren Avatar asked Dec 05 '15 08:12

ibiren


People also ask

How do you fix you don't have permission to open this file?

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'.

Why do I not have permission to open a file Mac?

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.

How do I give permission to a file?

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.

Why can't I open the file MyApp?

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?

How to fix “JPG file couldn't open on Mac” error?

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.

Why can't I install apps on my Mac device?

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

Why can’t I open a preview file in Yosemite?

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."


1 Answers

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.

like image 63
Rashwan L Avatar answered Sep 21 '22 06:09

Rashwan L