Version: Unity 6 Preview (6000.0)
Language : English
Measure performance with the built-in profiler
Native plug-ins for iOS

Optimize the size of the iOS Player

There are two main ways to reduce the size of the built iOS Player: create a Release build within Xcode, or change the Stripping Level within Unity.

Release build

It’s recommended to create final release builds within Xcode. Navigate to the menu bar and select Product > Archive. This option ensures the build has the correct release configuration and strips any debug symbols. After issuing this command, Xcode switches to the Organizer window Archives tab. For further information on how to calculate app size, and for other size-reducing tips, refer to Reducing the size of my App.

Note: It’s recommended to factor in a small margin for error when aiming for the over-the-air download limit. The current download limit is set at 200MB. However, starting with iOS 13, the app users have the option to override this limit to download apps larger than 200MB.

Managed code stripping

Unity removes unused or unreachable code during the build process through a technique called managed code stripping, which can significantly reduce the final size of your application. Refer to managed code stripping for more information.

Note: It can sometimes be difficult to determine which classes are getting stripped in error, even though the application requires them. You can often get useful information about this by running the stripped application on the simulator and checking the Xcode console for error messages.

Reduce the build size

Use the following checklist to help reduce the size of your build:

Minimum Unity application size

If disabling size optimizations, it’s expected that an empty project might be around 20MB in the App Store. Using code stripping, an application containing an empty sceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
can be reduced to less than 12MB in the App Store. However, the application must be zipped and have digital rights management (DRM) attached.

Increased application size in the Apple App Store

When publishing your app, Apple App Store service first encrypts the binary file and then compresses it via zip. Encryption increases the randomness of the code segment, and can increase the applications size before compression.

Measure performance with the built-in profiler
Native plug-ins for iOS