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 2.0 Basics An Introduction to Swift Programming What Is Swift?

Alex Olhava
Alex Olhava
251 Points

Do I have to use the latest OS X

Do I have to use OS sierra or can I use OS El capitan.

Gillian Reynolds-Titko
Gillian Reynolds-Titko
6,021 Points

Alex, you should be fine with El Capitan. The key change right now is from Swift 2 to Swift 3, so you will need to determine if you want to update your Xcode to version 8.0 (which uses Swift 3 but gives you the option to still use Swift 2.3). If you move to Swift 3.0, some of the Treehouse code might look a bit different, since it's still in Swift 2.

If you are totally new to Swift, then maybe stick with an earlier version of Xcode for now and get used to Swift 2 before going to Xcode 8 and Swift 3.

2 Answers

Hi Alex,

As long as Xcode doesn't complain about it, you are good to go.

Sierra will work fine.

If you're working in Swift 2.0, you will be A-OK in El Capitan. However, if you're wanting to start in Swift 3.0, Xcode 8 will require macOS Sierra because macOS Sierra is built on Swift 3.0 and El Capitan is built on Swift 2.0. Xcode should be backwards compatible, though.