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 Swift Basics Swift Types Strings

qifeng sun
qifeng sun
6,274 Points

I don't know how to run the code like in the video did where it run the code at the right side, how can i do that

I don't know how to run the code like in the video did where it run the code at the right side, how can i do that

Gabriel Morris
seal-mask
.a{fill-rule:evenodd;}techdegree
Gabriel Morris
iOS Development Techdegree Student 789 Points

When you open Xcode select "New Playground", the output column should be on the right hand side there, but only in Playgrounds. Hope that helps!

There are three buttons on the upper right-hand corner. Press the button furthest to the right to show a preview of the page. Hope this helps!

2 Answers

I've come across an issue of Xcode always running and not providing an output. I've had to force quit Xcode and restart. My Mac should be sufficient to run Xcode, so I'm thinking its a software issue.

MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports) 2.3 GHz Intel Core i5 16 GB 2133 MHz LPDDR3

Aaron Moore
Aaron Moore
3,719 Points

Depending on the version of xcode you are running, it may differ. Make sure you have the right hand side panel open, and then click the "play" button that will show after your last line of code.