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 trialCJ Bissett
573 PointsWhenever I try to write "println" it shows an error and Xcode attempts to correct it to just "print".
I just got Xcode and am following the Swift course videos but Xcode doesn't seem to recognize "println".
William Hartvedt Skogstad
5,857 PointsIn Swift 2.0 "println" is shorted to just "print". The language is just updated.
2 Answers
Martin Wildfeuer
Courses Plus Student 11,071 PointsAll the comments are correct, println
has been renamed to print
as of Swift 2. As the Swift learning videos refer to Swift 1.2, things that no longer apply to Swift 2 should be mentioned in the teachers notes.
Moreover, there's a Treehouse workshop video, What's new in Swift 2.0
Always a good read: Ray Wenderlich, What's new in Swift 2
Daniel Steen
337 PointsThis kind of sucks. Out of date learning materials. I've got the same issue.
Mitchel Andrews
4,745 PointsMitchel Andrews
4,745 PointsIt's most likely because you are running the latest version of Xcode which is Xcode 7. You can downgrade to Xcode 6.4 on Apple's Developer website, so that way you can follow along these tutorials.