Unity Crashes Building for iOS

I’m hoping someone can offer some advice. My project (which is still in the early stages and quite smallish) will build fine for Standalone and Web, but when I attempt to build for iOS it will always give an out of memory error and I have to force quit Unity.

I’ve uploaded the project to UT through the bug reporter and got the following response from their support:

I’ve since replied two or three times and had no further response from them at all. That email was sent to me on the 24th of December.

If anyone has some “contacts” there, I’d really appreciate someone giving them a nudge. I’m pretty much dead in the water if I can’t build for iOS.


(http://www.geppetto-games.com/temp/crash.png)

I’ve nudged Andy in our support team who replied to you last month.

Thanks dendrophile. Andy has been in contact.

I’ve also made some progress towards resolving the issue myself. My details to Andy below:

I’ve actually since upgraded the Mac from 4GB to 12GB for other reasons. Didn’t help this issue though.

As of last night, I have found the cause of the problem though (kind of):

It seems the Allegorithmic’s B2M is where my issue is coming from. At some point I converted all of the materials over so I could introduce normal maps. During that process, I left the B2M outputs set at 1024x1024 - the same as the original textures. I’ve found that by reducing them all down to 512x512, the game will now build. Doesn’t really make sense though as even at 1024x1024 I shouldn’t be running out of memory.

Also, what I don’t get is why it only fails to build for iOS and not Webplayer, Standalone. Those were working fine.

Also, even though it’s now building, it crashes as soon as I try to run it on a device. i.e. Xcode happily installs and runs it on my iPad, but it crashes immediately after the splash screen (loading of first scene).

I’m playing around trying to get that work now. Will see what happens.

Everything (including running on the iPad) used to work. B2M was the only “major” change, so I’m still pretty sure that’s the problem area.

For anyone following this thread, the answer may have been found. The following is a response from Allegorithmic:

1 Like