Reputation: 2841
My Xcode 9 gives the message to which I don't know how to respond. I want to run the app to my simulator, and I am getting this weird message. Attaching the snapshot for the same.
Upvotes: 26
Views: 17505
Reputation: 331
I faced the same issue. Quit Xcode and Restart Mac. This worked for me.
Upvotes: 0
Reputation: 1544
rm -rf ~/Library/Developer/Xcode/DerivedData
Upvotes: 29
Reputation: 36447
It seems that there is error while Xcode is trying to connect with Simulator/Device in order to run app.
So there are multiple solution to this issue :
Clean project (shortcut : cmd + shift + k
) / Clean Build project (shortcut : cmd + shift + alt + k)
Delete derived data content (Open Xcode preference using cmd + comma). Goto Location tab. In Derived Data section press on arrow symbol.
For me solution 3 worked!
Upvotes: 1
Reputation: 1777
You need to select the latest version of the command line tools in the preference pane.
In the Locations tab change the Command Line Tool pop up to the latest version.
Restart Xcode and the Simulator
Upvotes: 0
Reputation: 51
This is because you have multiple versions of Xcode in your system. Just quit all the other versions of xcode and also the simulators. Restart the required version of Xcode and it should work.
Upvotes: 0
Reputation: 735
Swapping between 2 versions of Xcode (8.3.3 and 9 GM) gave me this problem in Xcode 9. Solved by Xcode->Preferences->Locations->Command Line Tools, set to Xcode 9. Needed to quit Xcode and the simulator, but it then worked.
Upvotes: 5
Reputation: 2339
Same error. For me running xcode-select
helped:
sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer/
Upvotes: 0
Reputation: 119
Restart Xcode & Simulator. delete the app from simulator make clean & try to deploy again. it works for me.
Upvotes: 2
Reputation: 3880
I had the same issue:
Try to: - kill simulator (force quit)
if it won't work, restart mac - it is funny but for me it worked
Upvotes: 2