Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 Archive size large

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?

Screenshot of project files

Screenshot of archive file

like image 614
beninabox_uk Avatar asked Sep 22 '15 17:09

beninabox_uk


People also ask

Why does Xcode take up so much storage?

Xcode is itself a large, complex app; it contains many other large, complex apps like Instruments and iOS Simulator; it includes many large, complex tools like the compilers; it packages up SDKs with tons of detailed data about every declaration in every supported Apple OS; and it includes several simulator runtimes, ...

How do I reduce the size of Xcode on a Mac?

Go to ~/Library/Developer/Xcode/DerivedData/ and delete the folders for projects that you no longer need to keep this data around for. 2. iOS Device Support Xcode is storing information about the devices you have used for development. Delete the data no longer needed in ~/Library/Developer/Xcode/iOS DeviceSupport/ .

Where are Xcode archive files?

Steps to follow on mac: Open the Archives folder in Finder: Library > Developer > Xcode > Archives.

What does Xcodebuild archive do?

It archives your Xcode project by running the xcodebuild archive command and exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared and installed on test devices, or uploaded to App Store Connect.


1 Answers

The problem is that you turned on BitCode:

enter image description here

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.

like image 104
matt Avatar answered Oct 07 '22 20:10

matt