Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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"

constants.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