This document provides a quick overview of some watchOS specific features in the Python distribution.
Python on watchOS is largely the same as Python on iOS; most of the instructions in the iOS README can be used for watchOS builds, substituting:
watchOS as the identifier for Platforms/Apple invocations; e.g.,
python Platforms/Apple build watchOSpython Platforms/Apple ci watchOSpython Platforms/Apple test watchOSwatchOS resources are stored in the Platforms/Apple/watchOS/Resources directory
The watchOS SDK version is controlled with the WATCHOS_SDK_VERSION environment variable.
The minimum supported watchOS SDK version is controlled with the WATCHOS_DEPLOYMENT_TARGET environment variable.
When referencing platforms, the watchOS compiler triples are:
arm64_32-apple-watchos for Apple Watch devicesarm64-apple-watchos-simulator for Apple Watch simulators on ARM64 hardwarex86_64-apple-watchos-simulator for Apple Watch simulators on x86_64 hardwareThe watchOS testbed Xcode template project is stored in Platforms/Apple/testbed/watchOSTestbed.
platform.ios_ver() will return watchOS-relevant version information.