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

Xcode 7.2 Playground not Displaying Output

I just installed Xcode 7.2 from the mac app store and started a new playground. For whatever reason, Xcode isn't displaying any output, even before I change any code. I have no idea what could be causing this... I've done some Googling and the results never got to a definitive answer that worked. Any Ideas?

Fresh install of Xcode 7.2 from App Store OS X 10.11.2 Early 2015 13-inch Retina MacBook Pro

1 Answer

Arman Arutyunov
Arman Arutyunov
21,900 Points

Hey Nick!

Do you have any errors? The compiler is not able to display any output either if you have errors or your code is not complete. Could you share your code here to describe the situation more specifically?

Just in case, you can share your code using backticks. It's perfectly described in "Markdown Cheatsheet" below the text area: "Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting."

var thisWouldPerfectlyWorkInXcodePlaygroundCompiler = "Yo Nick :)"

And that's what I've exactly typed (but without quote marks):

"```swift

var thisWouldPerfectlyWorkInXcodePlaygroundCompiler = "Yo Nick :)"

"```