Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 733
Wonderland Avatar asked Oct 13 '14 07:10

Wonderland


People also ask

Do I need Xcode for iOS Simulator?

Launching the Simulator, though, always requires opening Xcode and going to Developer Tools. Because the Simulator. app is embedded within the Xcode app bundle, apps like LaunchBar won't find it to index it. LaunchBar, which is my launcher of choice, also ignores aliases, so dragging Simulator.

How do I run and clean in Xcode?

If there is any issue in the project build, then first step is to clean the build, which will clean the build and make a new build from scratch next time when you run the code. To clean the build you can use the shortcut Command+Shift+K or Menu Bar → Product → Clean .

How do I enable Simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.


2 Answers

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.

like image 57
Tej Pratap Avatar answered Sep 30 '22 17:09

Tej Pratap


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)
like image 26
GK100 Avatar answered Sep 30 '22 17:09

GK100