Fix Xcode version matching
This commit is contained in:
parent
1230075011
commit
9cfae823a7
@ -41,7 +41,7 @@ def execute(cmd, cwd = None):
|
||||
raise Exception("Child returned:", retcode)
|
||||
|
||||
def getXCodeMajor():
|
||||
ret = check_output(["xcodebuild", "-version"])
|
||||
ret = check_output(["xcodebuild", "-version"]).decode("utf-8")
|
||||
m = re.match(r'Xcode\s+(\d+)\..*', ret, flags=re.IGNORECASE)
|
||||
if m:
|
||||
return int(m.group(1))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user