有很多情况可引起次问题,可以逐一尝试:
- project.pbxproj: checkout the workable project.pbxproj file.
- Build Options: set
Compiler for C/C++/Objective-C
to default compiler. - Executable file: set to
$(EXECUTABLE_NAME)
or directly set to your app name. - Build > Clean:just do a clean.
- Replace the Info.plist with a new file from a new project
- Duplicate Info.plist in the project: just remove the extra one.
- Derived Data.: Find the Derived data path by
Xcode->preference->locations->Derived data
, then delete it withrm -r /Users/roofe/Library/Developer/Xcode/DerivedData
- And there may other reasons, you can refer to “The file ”MyApp.app“ couldn’t be opened because you don’t have permission to view it”