I've an error in Xcode 6.0.1 on OS X Mavericks 10.9.5.
When I debug, the iOS 8 simulator shows this error:
Unable to boot the iOS Simulator.
After few seconds Xcode shows this other error:
An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)
However, the iOS 7 simulator works!!
At this point there seems to be a lot of problems with the simulator in XCode 6 compared to XCode 5. I've especially seen issues when switching between various deployment targets and simulator devices. Restarting the simulator usually fixes the problem and if not try restarting XCode.
Thanks lads, but i finally found a solution. For those who are still looking for solution, here is the one which helped me:
There is a file /etc/launchd.conf that will not be used by Yoseph. I just deleted it. You can unset DYLD_INSERT_LIBRARIES environment variable in that file too. Hope this helps you all.
Do you have DYLD_INSERT_LIBRARIES set? Check /etc/launchd.conf and look for launchd_sim crash logs in ~/Library/Logs/DiagnosticReports ... if so, this is a dupe of
Unable to boot iOS 8 Simulator
Make sure you have under the path "Xcode --> Preferences --> Locations --> Command Line Tools --> Xcode 6.0 selected, if not select that. Another option is under iOS Simulator perform "Reset Content And Settings". Hope this helps!
I also had this problem and found the solution by doing following steps:-
Hope this helps anyone.