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 Enumerations and Optionals in Swift Introduction to Enumerations Enum Methods

Hussein Kheireddine
seal-mask
.a{fill-rule:evenodd;}techdegree
Hussein Kheireddine
Front End Web Development Techdegree Student 4,151 Points

Error Message Regarding MacOS Version.

I downloaded the latest version MacOS Sierra, and updated Safari as well. I'm running it on 10.12.6 but still I am trying to enter in my code and I get the same response. It says that I need to run it on 10.12 but that I am using 10.11.6.

buttons.swift
// Example of UIBarButtonItem instance
// let someButton = UIBarButtonItem(title: "A Title", style: .plain, target: nil, action: nil)

enum BarButton {
    case done(title: String)
    case edit(title: String)
}

let done = Barbutton.done(title: "Save")
Hussein Kheireddine
seal-mask
.a{fill-rule:evenodd;}techdegree
Hussein Kheireddine
Front End Web Development Techdegree Student 4,151 Points

"Executable requires at least macOS 10.12, but is being run on macOS 10.11.6, and so is exiting.xcrun: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! xcrun: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch sh: line 1: xcrun:: command not found"

This is the error message I am receiving.

1 Answer

It's not you, the compiler is down. Having same issue last few hours, already emailed support :)!