Xcode 7 Archive size large

2019-01-23 17:28发布

问题:

I've previously been using Xcode 6 to write my Swift app. I've now upgraded to Xcode 7 and upgraded my Swift syntax.

Previously, when I did an archive of my app, I'm sure it was only around 12MB in size when viewed in finder. Now, it is much larger (112MB).

I have now disabled bundles in my build settings as some other posts have suggested, and this has brought the archive down to 74.9MB.

Trouble is that uploading these large file sizes become very heavy on my internet connection and take ages to get processed by Apple iTunes connect.

Is there any way of reducing the size of the archive since I'm using Xcode 7?

回答1:

The problem is that you turned on BitCode:

Bitcode is big. But that's what it takes if you want the advantages that it offers.

So the irony is that with bitcode, your app can be much smaller when downloaded directly to a user's device (because it can be thinned, optimized for that device), but it has to be much bigger when uploaded to the App Store.