import Foundation

let RequiredXcodeVersion = "Xcode 6.3"

func isRequiredXcodeIsInstalled() -> Bool {
    return currentXcodeVersion() == RequiredXcodeVersion
}

func currentXcodeVersion() -> String? {
    return run("xcodebuild -version").first
}

import Foundation

let RequiredXcodeVersion = "Xcode 6.3"

func isRequiredXcodeIsInstalled() -> Bool {
    
    if let comparationResult = currentXcodeVersion()?.localizedCaseInsensitiveCompare(RequiredXcodeVersion) {
        switch comparationResult {
        case .OrderedDescending, .OrderedSame: return true
        default: ()
        }
    }
    return false
}

func currentXcodeVersion() -> String? {
    return run("xcodebuild -version").first
}


Fix Xcode version check to detect versions higher than 6.3
Fix Xcode version check to detect versions higher than 6.3
