Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Archive Is Too Large

Tags:

xcode

ios

unity3d

I have a Unity3D project that I've already released for iOS via Xcode. Previously the archive size was about 30-40Mb which I'm happy with.

I've now changed a few things within the Unity project, and rebuilt it for Xcode. Now when I archive it, the size is around 110Mb, which is huge compared to the previous file size. I only changed the logo, and splash screen design.

Also, when I rebuild the older version, the size isn't 30-40Mb anymore, it's 110Mb too!

So I'm guessing this is something to do with the new Xcode for iOS8? Not 100% sure, hence why Im asking.

Thanks.

like image 693
Oliver Jones Avatar asked Jan 19 '15 19:01

Oliver Jones


2 Answers

Try to turn off BitCode. Open XCode => Build Settings => search Enable BitCode. Set it to No.

like image 70
Leo Nguyen Avatar answered Sep 28 '22 09:09

Leo Nguyen


Have you read this? http://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html

Also it can be fault of stripping level, try to use micro mscorlib.

In addition you can take a look at Decrease Your App’s Code Size from Mac App Programming Guide. https://developer.apple.com/library/mac/documentation/General/Conceptual/MOSXAppProgrammingGuide/Performance/Performance.html#//apple_ref/doc/uid/TP40010543-CH9-SW2

like image 34
Javi Barrera Avatar answered Sep 28 '22 09:09

Javi Barrera