When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error:
Unable to boot the iOS Simulator
Even I encounter same problem, after a bit of toying around with Xcode and iOS simulator I am able to fix this issue with following steps:
First I will try to Reset Content and Settings... in OS Simulator.
If it doesn't work I will quit iOS Simulator and try.
Still if it doesn't work I will quit both Xcode and iOS Simulator.
You should be able to fix things using above steps, if it doesn't, try reboot and then see if you can get things up and running.
I am very happy that finally my issue resolved. Thanks to apple who helped me.
For those who are still looking for solution, here is the one which helped me:
Just unset DYLD_INSERT_LIBRARIES environment variable in the /etc/launchd.conf or ~/.launchd.conf file. Which you can edit by sudo vi /etc/launchd.conf
command. remove the above flag save it by "ZZ" (captial Z) and reboot the system. It works like a charm.
For reference: Xcode 6 simulator, unable to boot error.
I just wrestled with this problem for a while and running this line finally fixed it for me in Xcode 6.2, running iOS8.2.
launchctl setenv DYLD_INSERT_LIBRARIES ZZ
It is doing the same thing as the accepted answer, but I could no longer set variables with launchd.conf in Yosemite:
Setting environment variables via launchd.conf no longer works in OS X Yosemite/El Capitan/macOS Sierra?
I was facing same issue for Xcode 8 and 7.3.1 version. Upgrading mac OX Sierra solved the issue
Steps that I had to take to get this working.
Remove all versions of Xcode (I had 5 and 6 both in my Applications folder)
Install Xcode 6
Open Xcode and go to Xcode > Preferences > Locations
At the bottom of that screen under Command Line Tools, select Xcode 6.0 and make sure that the path under the select box reads /Applications/Xcode.app
Close that window and go to Xcode > Open Developer Tool > iOS Simulator
If the simulator has an error message, go to Hardware > Device > Manage Devices
Select each of the devices in the left hand column and delete them (delete key on the keyboard)
Completely quit out of the simulator and Xcode. Shut down and restart your computer (not logout)
Once restarted, open up xCode, open the simulator, go back to manage devices and add back in the ones that you want.
The simulator should now work as expected! Long winded, but that's the only way that I could get it to work.
I have both 6.3 and 6.2 for some older swift tutorials, most of the time it is fine but sometimes I get this error when switching and it seems like it is some background issue with the simulator. I just restart my system and it works fine after boot. Kind of the hard way to go around but I dont do this often.