Skip to main content

apple_toolchain

name

def name(
*,
name: str,
default_target_platform: None | str = ...,
target_compatible_with: list[str] = ...,
compatible_with: list[str] = ...,
exec_compatible_with: list[str] = ...,
visibility: list[str] = ...,
within_view: list[str] = ...,
metadata: OpaqueMetadata = ...,
tests: list[str] = ...,
modifiers: OpaqueMetadata = ...,
_apple_platforms: dict[str, str] = ...,
_internal_platform_path: None | str = ...,
_internal_sdk_path: None | str = ...,
actool: str,
architecture: str = ...,
build_version: None | str = ...,
codesign: str,
codesign_allocate: str,
codesign_identities_command: None | str = ...,
compile_resources_locally: bool = ...,
contacts: list[str] = ...,
copy_scene_kit_assets: str,
cxx_toolchain: str,
default_host_platform: None | str = ...,
developer_path: None | str = ...,
dsymutil: str,
dwarfdump: None | str = ...,
extra_linker_outputs: list[str] = ...,
ibtool: str,
installer: str = ...,
labels: list[str] = ...,
libtool: str,
licenses: list[str] = ...,
lipo: str,
mapc: None | str = ...,
merge_index_store: str = ...,
min_version: str = ...,
momc: str,
objdump: None | str = ...,
placeholder_tool: None | str = ...,
platform_path: None | str = ...,
requires_xcode_version_match: bool = ...,
sdk_environment: None | str = ...,
sdk_name: str = ...,
sdk_path: None | str = ...,
swift_toolchain: None | str = ...,
version: None | str = ...,
watch_kit_stub_binary: None | str = ...,
work_around_dsymutil_lto_stack_overflow_bug: None | bool = ...,
xcode_build_version: None | str = ...,
xcode_version: str,
xctest: str,
) -> None

Parameters

  • name: name of the target
  • default_target_platform: specifies the default target platform, used when no platforms are specified on the command line
  • target_compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with a configuration
  • compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with a configuration
  • exec_compatible_with: a list of constraints that are required to be satisfied for this target to be compatible with an execution platform
  • visibility: a list of visibility patterns restricting what targets can depend on this one
  • within_view: a list of visibility patterns restricting what this target can depend on
  • metadata: a key-value map of metadata associated with this target
  • tests: a list of targets that provide tests for this one
  • modifiers: an array of modifiers associated with this target