Skip to content

Commit 643f423

Browse files
mingz2013drelaptop
authored andcommitted
fix version check error, when xcode upgrade to 10.0 (#447)
1 parent 3a73f48 commit 643f423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/plugin_compile/project_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def build_android(self):
545545
def check_ios_mac_build_depends(self):
546546
version = cocos.get_xcode_version()
547547

548-
if version <= '5':
548+
if cocos.version_compare(version, "<=", 5):
549549
message = MultiLanguage.get_string('COMPILE_ERROR_UPDATE_XCODE')
550550
raise cocos.CCPluginError(message, cocos.CCPluginError.ERROR_TOOLS_NOT_FOUND)
551551

0 commit comments

Comments
 (0)