Skip to main content
Functions for Starlark to access internals of the apple rule implementations.

Members

apple_host_system_env

Returns a dict of environment variables that should be set for actions that need to run build tools on an Apple host system, such as the version of Xcode that should be used. The keys are variable names and the values are their corresponding values.

Parameters

apple_toolchain

Utilities for resolving items from the apple toolchain.

AppleDebugOutputs

The constructor/key for the AppleDebugOutputs provider. If a target propagates the AppleDebugOutputs provider, use this as the key with which to retrieve it. Example:

AppleDynamicFramework

The constructor/key for the AppleDynamicFramework provider. If a target propagates the AppleDynamicFramework provider, use this as the key with which to retrieve it. Example:

AppleExecutableBinary

The constructor/key for the AppleExecutableBinary provider. If a target propagates the AppleExecutableBinary provider, use this as the key with which to retrieve it. Example:

dotted_version

Creates a new DottedVersion instance.

Parameters

Links a (potentially multi-architecture) binary targeting Apple platforms. This method comprises a bulk of the logic of the Starlark apple_binary rule in the rules_apple domain and exists to aid in the migration of its linking logic to Starlark in rules_apple. This API is highly experimental and subject to change at any time. Do not depend on the stability of this function at this time.

Parameters

Links a (potentially multi-architecture) static library targeting Apple platforms. This method comprises a part of the Starlark apple_static_library rule logic, in the rules_apple domain and exists to aid in the migration of its linking logic to Starlark in rules_apple. This API is highly experimental and subject to change at any time. Do not depend on the stability of this function at this time.

Parameters

new_dynamic_framework_provider

Creates a new AppleDynamicFramework provider instance.

Parameters

new_executable_binary_provider

Creates a new AppleExecutableBinaryInfo provider instance.

Parameters

new_objc_provider

Creates a new ObjcProvider instance.

Parameters

Objc

The constructor/key for the Objc provider. If a target propagates the Objc provider, use this as the key with which to retrieve it. Example:

platform

An enum-like struct that contains the following fields corresponding to Apple platforms:
  • ios_device
  • ios_simulator
  • macos
  • tvos_device
  • tvos_simulator
  • visionos_device
  • visionos_simulator
  • watchos_device
  • watchos_simulator
These values can be passed to methods that expect a platform, like XcodeVersionConfig.sdk_version_for_platform.

platform_type

An enum-like struct that contains the following fields corresponding to Apple platform types:
  • ios
  • macos
  • tvos
  • visionos
  • watchos
These values can be passed to methods that expect a platform type, like the ‘apple’ configuration fragment’s multi_arch_platform method. Example:

target_apple_env

Returns a dict of environment variables that should be set for actions that build targets of the given Apple platform type. For example, this dictionary contains variables that denote the platform name and SDK version with which to build. The keys are variable names and the values are their corresponding values.

Parameters

XcodeProperties

The constructor/key for the XcodeVersionProperties provider. If a target propagates the XcodeVersionProperties provider, use this as the key with which to retrieve it. Example:

XcodeVersionConfig

The constructor/key for the XcodeVersionConfig provider.