Lines Matching full:version
4 # Licensed under the Apache License, Version 2.0 (the "License");
28 def split_version(version: str or bytes):
30 Splits the Xcode version to 3 values.
39 if isinstance(version, bytes):
40 version = version.decode()
41 version = version.split('.')
42 return itertools.islice(itertools.chain(version, itertools.repeat('0')), 0, 3)
45 def format_version(version: str or bytes):
47 Converts Xcode version to a format required for DTXcode in Info.plist
56 major, minor, patch = split_version(version)
61 """Fills the Xcode version and build number into |fill_settings|."""
64 lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
69 print(f"Failed to run xcodebuild -version: {cpe}")
79 """Fills the SDK path and version for |platform| into |fill_settings|."""
83 'xcrun', '-sdk', platform, '--show-sdk-version']).strip()
88 'xcrun', '-sdk', platform, '--show-sdk-build-version']).strip()