Lines Matching full:version
4 # Licensed under the Apache License, Version 2.0 (the "License");
28 def split_version(version): argument
29 """Splits the Xcode version to 3 values.
38 if isinstance(version, bytes):
39 version = version.decode()
40 version = version.split('.')
41 return itertools.islice(itertools.chain(version, itertools.repeat('0')), 0, 3)
44 def format_version(version): argument
45 """Converts Xcode version to a format required for DTXcode in Info.plist
54 major, minor, patch = split_version(version)
59 """Fills the Xcode version and build number into |settings_xcode|."""
60 lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
73 """Fills the SDK path and version for |platform| into |settings|."""
77 'xcrun', '-sdk', platform, '--show-sdk-version']).strip()
82 'xcrun', '-sdk', platform, '--show-sdk-build-version']).strip()
107 raise ValueError("Xcode version is not set or invalid.")