> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-30868.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# apple {#modules.apple}

A configuration fragment for Apple platforms.

## Members

* [single\_arch\_cpu](#single_arch_cpu)
* [single\_arch\_platform](#single_arch_platform)

<h2 id="single_arch_cpu">
  single\_arch\_cpu
</h2>

```
string apple.single_arch_cpu
```

The single "effective" architecture for this configuration (e.g., `i386` or `arm64`) in the context of rule logic that is only concerned with a single architecture (such as `objc_library`, which registers single-architecture compile actions).

<h2 id="single_arch_platform">
  single\_arch\_platform
</h2>

```
apple_platform apple.single_arch_platform
```

The platform of the current configuration. This should only be invoked in a context where only a single architecture may be supported; consider [multi\_arch\_platform](#multi_arch_platform) for other cases.
