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 (retired) Variables and Constants Constants

my code is correct and it wont compile

So it just asked me to create a constant language and assign the value of it to "Swift"

I did this and it wont compile. Am I missing something.

let language = "Swift"

import UIKit

let language : String = "Swift"

2 Answers

Myers Carpenter
Myers Carpenter
6,421 Points

We just fixed a problem with Xcode on our servers which may have been causing this. Also you don't need import UIKit.

Ok thanks for the update. I thought I was going crazy.

AR Ehsan
AR Ehsan
7,912 Points

It's probably a problem with treehouse!

Yes, it was a problem with treehouse. Thanks