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

General Discussion

Error in Xcode: playground execution terminated because the process stopped unexpectedly. HELP! Thank you!

I get that ^ error when using Xcode. What is wrong and how do I fix the problem?

Do you mind posting the code you are using? Most likely it ran into an error or infinite loop and just crashed itself to keep from crashing Xcode.

Any code that I am using displays this error. Every time the system tries to run my code, it displays this error.

You may want to check the "import" and the type of playground "iOS" or "OS X"

What is the "import"?

2 Answers

When creating a playground, it should start with this as a template for an iOS playground.

//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"

If you remove "import UIKit" then things like Strings ("Hello") and everything else will not work and will error out.

It seems to be a common bug with xcode beta versions:

https://forums.developer.apple.com/thread/13029

No one should be using Xcode Beta for these exercises. And if you do have beta, it is good practice to have both normal and beta versions of Xcode on your machine, since you cannot submit apps to the app store from the beta version.