您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

13 行
769 B

diff --git a/Users/unity/Documents/GitHub/EngineBuildTool/engine/src/build/mac/find_sdk.py b/Users/unity/Desktop/find_sdk.py
index 0534766..e503ced 100755
--- a/Users/unity/Documents/GitHub/EngineBuildTool/engine/src/build/mac/find_sdk.py
+++ b/Users/unity/Desktop/find_sdk.py
@@ -55,7 +55,7 @@ def main():
sdk_dir = xcode43_sdk_path
else:
sdk_dir = os.path.join(out.rstrip(), 'SDKs')
- sdks = [re.findall('^MacOSX(10\.\d+)\.sdk$', s) for s in os.listdir(sdk_dir)]
+ sdks = [re.findall('^MacOSX(1[0-1]\.\d+)\.sdk$', s) for s in os.listdir(sdk_dir)]
sdks = [s[0] for s in sdks if s] # [['10.5'], ['10.6']] => ['10.5', '10.6']
sdks = [s for s in sdks # ['10.5', '10.6'] => ['10.6']
if parse_version(s) >= parse_version(min_sdk_version)]