This document provides a quick overview of some tvOS specific features in the Python distribution.
Python on tvOS is largely the same as Python on iOS; most of the instructions in the iOS README can be used for tvOS builds, substituting:
tvOS as the identifier for Platforms/Apple invocations; e.g.,
python Platforms/Apple build tvOSpython Platforms/Apple ci tvOSpython Platforms/Apple test tvOStvOS resources are stored in the Platforms/Apple/tvOS/Resources directory.
The tvOS SDK version is controlled with the TVOS_SDK_VERSION environment variable.
The minimum supported tvOS SDK version is controlled with the TVOS_DEPLOYMENT_TARGET environment variable.
When referencing platforms, the tvOS compiler triples are:
arm64-apple-tvos for AppleTV devicesarm64-apple-tvos-simulator for AppleTV simulators on ARM64 hardwarex86_64-apple-tvos-simulator for AppleTV simulators on x86-64 hardwareThe tvOS testbed Xcode template project is stored in Platforms/Apple/testbed/tvOSTestbed.
platform.ios_ver() will return tvOS-relevant version information.