When I clean Xcode DerivedData I can't run my app in iOS Simulator

爷,独闯天下 提交于 2019-12-23 09:31:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!