Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Jordan Anderson
Jordan Anderson
19,560 Points

Xcode 6 simulator failure

Hello,

Anyone else having problems with the Xcode 6 simulator? I haven't been able to get mine to launch correctly once since starting the Swift App build.

Any recommendations/help is appreciated.

Thank you.

Chris Shaw
Chris Shaw
26,676 Points

Hi Jordan,

What happens when you attempt to run the simulator? Can you run it by searching for it in spotlight?

4 Answers

Jordan Anderson
Jordan Anderson
19,560 Points

Hey John,

I click run in Xcode, its does it thing, Xcode gives the build Succeed pop up. Then it tires to load up on iOS simulator but the simulator stays black and gives an pop up error "Unable to boot the iOS simulator". Then Xcode gives a similar error: "Unable to run app in Simulator" "An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)

About to look this error code up.

Chris Shaw
Chris Shaw
26,676 Points

There is an easy way to fix this error, open your Xcode preferences and on the far right select the Locations tabs, next ensure your Command Line Tools has Xcode 6.x selected.

The x refers to your current version of Xcode which in the app store is 6.1.

Jordan Anderson
Jordan Anderson
19,560 Points

I actually checked that alread, My version was 6.0.1(6A317). I'm downloading the app store version now since mine was still one of the beta releases. Did it and still no luck

Chris Shaw
Chris Shaw
26,676 Points

Have a look at the below Stack Overflow thread, others have mentioned resetting your content settings within the iOS Simulator fixes the issue.

http://stackoverflow.com/a/13006893

Jordan Anderson
Jordan Anderson
19,560 Points

I have tried just about everything on there. Except this "was NOT enough; had to remove folder ~/Library/Application Support/iPhone Simulator/6.0". However my skills with the command line are limited. I havent been able to get anywhere near the files that he is suggesting to be deleted. Any ideas?

Thank you for sticking this out with me

Jordan Anderson
Jordan Anderson
19,560 Points

If you have any other recommendations im all ears. I tried installing from app store, deleting the devices in the device manager for simulator then putting them back in. I will have to look into it more tomorrow after work.

Zachary Betz
Zachary Betz
10,413 Points

Try rebooting.

If that doesn't work, try this Stack Overflow thread