- Home /
Game crashes on iOS after 10 seconds of loading
Hi folks,
I've got a huge problem. I want to create an iOS Build for iPads (if I'm correct it's the 4th generation), and it loads the main menue perfekt. Whenever I try to load my first level it crashes after 10 - 15 seconds.
I searched for the problem and it's said that the memory could be too full. A version of 2 days ago works perfectly. But if we add some code and some new enviroment, it won't work anymore. The strange thing is: Even if we disable the enviroment completely, it tends to be random wether it will work or not.
But I didn't add much to the code the last days (no big changes, only a few Animation.Play() calls and minor stuff, no use of physic funktions or stuff like that )
Is there any way to see what exactly makes the game crash on the iPad?
Answer by Robert-Castle · Aug 14, 2013 at 03:59 PM
iOS will kill your app if it takes too long to load.
Try loading an empty scene first, and then load your main scene.
If it still dies, then yes, you are loading too much stuff into memory or into GPU memory. It may work sometimes, but not others depending on how much system memory is free at the time.
Running Xcode's Instruments will show you if you are being killed due to memory issues. Use Unity's profiler to see where your memory expenditure is going.
Your answer
Follow this Question
Related Questions
App crash when using siri dictation to replace text on iOS 0 Answers
iPhone Controller Asset 0 Answers
Screen.sleepTimeout works when application runs in background on iOS (iPad) 0 Answers
Specifying a high quality background image for iPad 1 Answer
Keyboard triggered animation not showing on IOS device 0 Answers