IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/apple_platform_type You can read about the migration, and let us know what you think.Extensions > API reference > apple_platform_type
apple_platform_typeDescribes an Apple "platform type", such as iOS, macOS, tvOS, or watchOS. This is distinct from a "platform", which is the platform type combined with one or more CPU architectures.
Specific instances of this type can be retrieved by accessing the fields of the apple_common.platform_type:
Likewise, the platform type of an existing platform value can be retrieved using its
Platform types can be converted to a lowercase string (e.g.,
macos) using the str function.