问题
In Xcode 6.0.1,I have to delete all my data in DerivedData,then I run my app,it builds successfully but I can't run it on the iOS Simulator iPhone 5. Xcode warning :
Invalid or missing Program/ProgramArguments
Can anyone help me ?
回答1:
I was facing this issue when i migrated my project from xcode 6.4 to xcode 7 beta 6. To solve this issue, you have to : From top menu options GOTO, xcode -> Preferences (cmd + ,) -> Locations select the command line tool to your current version.
Now run your app, it should work fine.
回答2:
One of the following worked for me:
- cleaning project (Product/Clean)
- cleaning derived data (Window/Projects)
- reopening XCode and the project
- removing the scheme and re-creating it (Product/Scheme/Manage Schemes)
- changing location of Derived Data (XCode/Preferences/Locations, changing Derived Data to: Relative)
回答3:
I had the same issue and noticed that Xcode created few build directories in different places all of a sudden.
So i went to build setting and revisited all build locations, quit Xcode, deleted all build locations directories, started XCode, cleaned build, revisited again and this fixed the issue.
Not sure what caused it at the 1st place though:)
来源:https://stackoverflow.com/questions/26335145/when-i-clean-xcode-deriveddata-i-cant-run-my-app-in-ios-simulator