I am unable to launch my app on simulator using Xcode 6 beta and iPhone 5s simulator. First I am getting an error message from Simulator
"Unable to boot the iOS simulator"
and then after Xcode is showing me following error,
Unable to run app in Simulator
An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)
i was facing the same problem, what i done is I downloaded simulator for IOS7 what you need to do is go to:- 1.Xcode->preferences->Downloads->Components 2.after that in your project under general settings-select Deployment target as 7.0 3.the last thing is select any simulator under 7.0 :)
I solved it following these steps:
Clean -> Run fixed it for me.
I've tried the rest, nothing helped. Although it may be required too.
For me, I simply hadn't updated Xcode from the Developer Center which was now Xcode 6 beta 6. I'd gotten spoilt with the automated App Store updates, and forgot about ye old manual download process.
Make sure you open Xcode 6 from Applications not from the setup file.
Finally restarting Mac solve the problem in my case.
After I found some solutions on the web, a combination of procedures worked for me:
Close Xcode and iOS Simulator (and all related applications)
Install (or reinstall) Xcode6-Beta to Applications folder (direct from the .dmg file)
Open Xcode6-Beta and go to Xcode -> Preferences -> Locations -> Command Line Tools and select "Xcode 6.0" (be sure that you've selected the one in Applications folder)
Launch the iOS Simulator and go to iOS Simulator -> Reset Content and Settings...
Close all the applications and restart your mac (I unchecked "Reopen windows...")
Open Xcode6-beta and test the iOS Simulator
Good luck