Fix Xcode version matching

This commit is contained in:
Andrey Senyaev 2022-05-31 01:58:50 +03:00
parent 1230075011
commit 9cfae823a7

View File

@ -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))