Skip to main content
The set of Apple versions computed from command line options and the xcode_config rule.

Members

XcodeVersionConfig

Returns the Xcode info that is associated with this target

Parameters

availability

Returns the availability of this Xcode version, ‘remote’ if the version is only available remotely, ‘local’ if the version is only available locally, ‘both’ if the version is available both locally and remotely, or ‘unknown’ if the availability could not be determined.

execution_info

Returns the execution requirements for actions that use this Xcode config.

minimum_os_for_platform_type

The minimum compatible OS version for target simulator and devices for a particular platform type.

Parameters

sdk_version_for_platform

The version of the platform SDK that will be used to build targets for the given platform.

Parameters

to_json

Deprecated. This API is deprecated and will be removed soon. Please do not depend on it. It is disabled with ---incompatible_struct_has_no_methods. Use this flag to verify your code is compatible with its imminent removal. Creates a JSON string from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs, a list of these types or a dictionary with string keys and values of these types. Quotes and new lines in strings are escaped. Examples:
. Deprecated: instead, use json.encode(x) or json.encode_indent(x), which work for values other than structs and do not pollute the struct field namespace.

to_proto

Deprecated. This API is deprecated and will be removed soon. Please do not depend on it. It is disabled with ---incompatible_struct_has_no_methods. Use this flag to verify your code is compatible with its imminent removal. Creates a text message from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs or dicts or lists of these types. Quotes and new lines in strings are escaped. Struct keys are iterated in the sorted order. Examples:
Deprecated: use proto.encode_text(x) instead.

xcode_version

Returns the Xcode version that is being used to build. This will return None if no Xcode versions are available. May return None.