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