Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode run fails because I don't have permission to open file [duplicate]

Whenever I try to run my app in Xcode 6 Beta 4 I am getting the error:

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.

I have tried:

  • Deleting all Derived Data from Organizer in Xcode
  • Repairing permissions on my drive
  • Manually elevating the permissions of the built MyApp.app
  • Restarting my computer

Has anyone else run into this problem and found a solution?

Screenshot

like image 992
drewag Avatar asked Nov 27 '25 09:11

drewag


1 Answers

I use Xcode6 GM. I encountered the same problem. What I did was to go to Build Settings -> Build Options. Then I changed the value of the "Compiler for C/C++/Objective-C" to Default Compiler.enter image description here

like image 114
YuAn Shaolin Maculelê Lai Avatar answered Nov 30 '25 00:11

YuAn Shaolin Maculelê Lai