Fix Xcode version matching
authorAndrey Senyaev <andrey.senyaev@gmail.com>
Mon, 30 May 2022 22:58:50 +0000 (01:58 +0300)
committerAndrey Senyaev <andrey.senyaev@gmail.com>
Mon, 30 May 2022 22:58:50 +0000 (01:58 +0300)
platforms/ios/build_framework.py

index bc76587..4895493 100755 (executable)
@@ -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))