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
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.
by Choosing Legacy Build System from the workspace setting Solved my problem
File -> Workspace Settings -> Build System: Legacy Build System
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.
Try:
Entered Bundle name As : ${PRODUCT_NAME}
Changed Executable file : ${EXECUTABLE_NAME}
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.