Use the iOS Build Settings to configure and build your application for iOS devices. The iOS Build Settings are part of the Build Settings window. To view the iOS Build Settings:
可以配置以下构建设置:
属性 | 描述 | |
---|---|---|
Run in Xcode | Selects 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 that doesn’t appear in this list, select Other to find the version in the Applications window that appears. If Unity can’t find an Xcode installation on your computer, select the Browse button that you can select to locate the Xcode installation directory on your computer, if it exists. This option is visible only when you run Unity on macOS. |
|
Run in Xcode as | Selects whether Xcode runs your Project as a Release or Debug build. | |
Release | Builds an optimized version of your app. | |
Debug | Builds a testing version of your app that contains additional code that helps with debugging. | |
Symlink Sources | References Unity libraries instead of copying them into the Xcode project. This option reduces the Xcode project size and makes iteration times faster. | |
Development Build | Indicates whether to include scripting debug symbols and the Profiler in your build. Use this setting when you want to test your application. When you select this option, Unity sets the DEVELOPMENT_BUILD scripting define. Your build then includes preprocessor directives that set DEVELOPMENT_BUILD as a condition. For more information, see Platform dependent compilation. |
|
Autoconnect Profiler | Automatically connects the Profiler to the build. Only available if you enable the Development Build setting. For more information, see Profiler. This property is visible only when Development Build is enabled. |
|
Deep Profiling | Indicates whether to enable Deep Profiling in the Profiler. This makes the Profiler instrument every function call in your application so it returns more detailed profiling data. This option might slow down script execution. This property is visible only when Development Build is enabled. |
|
Script Debugging | Attach script debuggers to the Player remotely. This property is visible only when Development Build is enabled. |
|
Compression Method | Specifies the method Unity uses to compress the data in your Project when it builds the Player. This includes Assets, Scenes, Player settings, and GI data. | |
Default | The default compression is None. | |
LZ4 | A fast compression format that’s useful for development builds. LZ4 compression can significantly improve the loading time of your application. For more information, see BuildOptions.CompressWithLz4. | |
LZ4HC | A high compression variant of LZ4 that’s 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 BuildOptions.CompressWithLz4HC. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.