Version: 2019.3
iOS 硬件指南
iOS Player 设置

iOS 构建设置

要为 iOS 创建构建版本,请访问 Build Settings__(菜单:__File > Build Settings__)。在 Platform__ 列表中,选择 iOS__,然后选择 Switch Platform__ 按钮。

Unity 中的 iOS 构建设置 (Build Settings)
Unity 中的 iOS 构建设置 (Build Settings)

将应用程序构建到 iOS 设备的过程涉及两个步骤:

1.Unity 构建一个 Xcode 项目

2.Xcode 将该项目构建到您的设备。

要选择 Xcode 的构建目标设备,请执行以下步骤:

1.将设备连接到您的计算机。

2.从 Xcode 的主菜单中,选择 Product > Destination__,然后从 Devices__ 列表中选择设备。

可以配置以下构建设置:

Setting Function
Run in Xcode This option only shows when you run Unity on macOS. Select the Xcode version to open your project with. You can choose the Latest version, or select a specific version from the drop-down list.

If you have a specific Xcode version installed on your machine, but it doesn’t appear in this list, select Other, then find and select the specific version in the Applications window that appears and select Open.

If Unity can’t find an Xcode installation on your computer, it displays a Browse button that you can select to locate the Xcode installation directory on your computer, if it exists.
Run in Xcode as Select whether Xcode runs your Project as a Release or Debug build.
Release Build an optimized version of your app.
Debug Build a testing version of your app that contains additional code that helps with debugging.
Symlink Unity libraries Reference Unity libraries instead of copying them into the Xcode project. This option reduces the Xcode project size and makes iteration times faster.
Development Build A development build includes scripting debug symbols. When you select the Development Build setting, you can select the Autoconnect Profiler, Script Debugging, and Scripts Only Build setting. It also enables the DEVELOPMENT_BUILD #define.

For more information about #define directives, see documentation on Platform dependent compilation.
Autoconnect Profiler Automatically connect the Profiler to the build. Only available if you enable the Development Build setting. For more information on the Profiler, see documentation on the Profiler.
Deep Profiling When you enable Deep Profiling, Unity profiles all of your script code and records all function calls. This is useful to pinpoint game code that causes performance issues. However, it uses a lot of memory and might not work with very complex scripts. For more information, see documentation on deep profiling.
Script Debugging Attach script debuggers to the Player remotely. Only available if you enable the Development Build setting.
Scripts Only Build Enable this setting to build just the scripts in the current Project. Only available if you enable the Development Build setting.

When you enable this setting, Unity rebuilds the scripts in your application, and leaves data files from previously executed builds intact. It significantly improves iteration times if you only change the code in your application.

Note: You need to build the entire Project once before you can use this setting.
Compression Method Compress the data in your Project at build time. This includes Assets, Scenes, Player settings, and GI data. Choose between the following methods:
Default The default compression is None.
LZ4 A fast compression format that is useful for development builds. LZ4 compression can significantly improve the loading time of your application. For more information, see documentation on BuildOptions.CompressWithLz4.
LZ4HC A high compression variant of LZ4 that is slower to build but produces better results for release builds. LZ4HC compression can significantly improve the loading time of your application. For more information, see documentation on BuildOptions.CompressWithLz4HC.

  • 2019–09–26 页面已发布
iOS 硬件指南
iOS Player 设置
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961