Very large compiled file

0

I have a fairly simple app developed in swift. When I generate the file to upload itunesconnect it generates a file of 104MB. Other app in ObjC climbs occupied about 4 or 5 MB. To generate the file I first make a Product-> Clean and then a Product-> Archive, I do not have any images or anything that can make it that much. ItunnesConnect lets me go up but it gives me a warning Does anyone know what the reason may be? It should be like that? Any compilation option?

    
asked by Spidvmp 20.04.2016 в 20:58
source

1 answer

3

Well, in Swift 2.x the runtime of Swift is embedded within each application, and hence the binary occupies so much. In more than one application, moving to Swift or simply adding code in the new language, it has gone from occupying just 10 Mb to 60 Mb since, as I said, the runtime is included within each binary. Over time this problem should disappear since the runtime will be integrated directly into the OS and it will not be necessary to include it in the binary.

Well find more information here and here , for example.

    
answered by 20.04.2016 / 22:58
source