Version: 2021.3
tvOS
tvOS Player Settings

Requirements and compatibility

Although the Apple TV platform (tvOS) is similar to the iOS platform, there are some differences between the two. Before developing your application for tvOS, review the requirements, compatibility notes, and known limitations.

要求

要进行 tvOS 开发,必须满足以下先决条件:

  • Xcode 7.1 或更高版本。

Compatibility

It’s best practice to create a separate branch or copy of your application and port that to Apple TV. tvOS only supports a subset of the iOS framework. This means that plug-ins that are compatible with iOS might not be compatible with tvOS.

If your app uses more than 4 GB on disk, break it into smaller parts and use On Demand Resources.

Note: Bitcode is included with tvOS builds, which adds around 130 MB to your executables. App Store servers strip this code, so it doesn’t affect your distribution size. To estimate Bitcode size, analyze the LLVM sections in your executable from the command line with otool -1.

实现对按需加载资源 (On Demand Resources) 的支持

tvOS limits how much disk space your application can reserve. The main application installation bundle size can’t be larger than 4 GB. The limits for additional downloadable content are up to 2GB for in-use assets, and up to 20GB of total downloadable content. Apple recommends On Demand Resources (ODR) for tvOS downloadable content, which is the best disk space management for tvOS. Unity supports ODR via Asset Bundles. For more information about ODR implementation, see the Unity blog Mastering on-demand resources for Apple platforms.

已知限制

  • 屏幕键盘仅限于单行输入。
  • tvOS Simulator doesn’t emulate the Apple TV Remote as an app controller, which means apps can’t access its input.
tvOS
tvOS Player Settings
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961