Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The file "<appName>.app" couldn’t be opened because you don’t have permission to view it

Tags:

xcode

ios

I get the following warning when I try to run my app:

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

I have looked through all the previous questions I could find and can't find an answer.

I have tried:

  • Replacing my info.plist
  • Deleting Derived Data
  • Duplicating my app
  • Editing the permission on the folder of the project
  • Changing "Compiler for C/C++/Objective-C" to Default in Build Settings
  • Checking my architectures
  • Cleaning My Project

Thanks for your help!

Update: I can not run it in simulator or on my phone.

like image 650
jbokwx Avatar asked Dec 25 '14 20:12

jbokwx


Video Answer


2 Answers

I also saw this occur when some of the items of source code were not included in the Target Membership for this particular target. It compiles just fine either way, but it won't run unless you check the boxes for Target Membership in the File Inspector. The error given is the same lack of permissions message above.

like image 129
Aku Avatar answered Oct 17 '22 07:10

Aku


select info

Enter Bundle name As : ${PRODUCT_NAME}

Executable file : ${EXECUTABLE_NAME}

like image 21
Gulzaman Avatar answered Oct 17 '22 05:10

Gulzaman