Having problems building your project or running your built project?
If you’re building your project for iOS, you may run into one of the following problems.
- You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game.
To fix this, change in XCode’s build settings the ‘Compress PNG files’ setting to NO and build the project again.
- Ran out of trampolines of type 2
This is caused by use of generics, you have to tell the AOT compiler allocate more trampolines. To fix this, change in Unity’s Player Settings > Other Settings the ‘AOT Compiler Options’ to nimt-trampolines=512. If you’re still receiving a trampoline error, increase the number, e.g. 1024.
This can be caused by Unity engine code being stripped when using ‘IL2CPP’ scripting backend. To fix this, disable ‘Strip Engine Code’ in Unity’s PlayerSettings > Other Settings in your iOS player settings.
- Using the new UI (Unity 4.6+) and content is displayed outside of masks (e.g. text extends outside of GUI box)
Go to ‘Edit > Project Settings > Player’ and enable ‘Use 24-bit Depth Buffer’ in the iOS ‘Resolution and Presentation’ settings in Unity.
You can find information on other issues and more detailed instructions on the Unity troubleshooting page.