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

前端 未结 5 1225
南笙
南笙 2020-12-19 08:31

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

相关标签:
5条回答
  • 2020-12-19 08:43

    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.

    0 讨论(0)
  • 2020-12-19 08:46

    by Choosing Legacy Build System from the workspace setting Solved my problem

    File -> Workspace Settings -> Build System: Legacy Build System

    0 讨论(0)
  • 2020-12-19 08:50

    Removing the Valid_Archs key in <Build Settings - User Defined> resolved the issue for me.

    I couldn't remove the keys in Xcode but opening the project file and deleting using a text editor worked.

    0 讨论(0)
  • 2020-12-19 08:56

    Try:

    Entered Bundle name As : ${PRODUCT_NAME}
    Changed Executable file : ${EXECUTABLE_NAME}

    0 讨论(0)
  • 2020-12-19 08:57

    This can also occur if the source code you are compiling, isn't part of the target you are compiling for. To check this, select some of the source code in your project, then look to the File Inspector (on the right side, Utilities pane) for Target Membership and check that the source code is part of the target.

    0 讨论(0)
提交回复
热议问题