Skip to main content

apple_toolchain

apple_toolchain

def apple_toolchain(
*,
name: str,
default_target_platform: None | str = None,
target_compatible_with: list[str] = [],
compatible_with: list[str] = [],
exec_compatible_with: list[str] = [],
visibility: list[str] = [],
within_view: list[str] = ["PUBLIC"],
metadata: OpaqueMetadata = {},
tests: list[str] = [],
modifiers: OpaqueMetadata = [],
_apple_platforms: dict[str, str] = {},
_internal_platform_path: None | str = None,
_internal_sdk_path: None | str = None,
actool: str,
architecture: str = "",
build_version: None | str = None,
codesign: str,
codesign_allocate: str,
codesign_identities_command: None | str = None,
compile_resources_locally: bool = False,
contacts: list[str] = [],
copy_scene_kit_assets: str,
cxx_toolchain: str,
default_host_platform: None | str = None,
developer_path: None | str = None,
dsymutil: str,
dwarfdump: None | str = None,
extra_linker_outputs: list[str] = [],
ibtool: str,
installer: str = "gh_facebook_buck2_shims_meta//xplat/buck2/platform/apple/installer/src/com/facebook/buck/apple/installer:apple_installer",
labels: list[str] = [],
libtool: str,
licenses: list[str] = [],
lipo: str,
mapc: None | str = None,
merge_index_store: str = "prelude//apple/tools/index:merge_index_store",
min_version: str = "",
momc: str,
objdump: None | str = None,
placeholder_tool: None | str = None,
platform_path: None | str = None,
requires_xcode_version_match: bool = False,
sdk_environment: None | str = None,
sdk_name: str = "",
sdk_path: None | str = None,
swift_toolchain: None | str = None,
version: None | str = None,
watch_kit_stub_binary: None | str = None,
work_around_dsymutil_lto_stack_overflow_bug: None | bool = None,
xcode_build_version: None | str = None,
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