<div dir="ltr"><p>Yep, I just took a simple app and opened up the ipa. 90% of it is the “Frameworks” directory containing the Swift frameworks <code>libSwiftCore.dylib</code>, <code>libSwiftDarwin.dylib</code>, etc.</p>
<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 15, 2016 at 3:43 PM Seth Friedman via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:13px"><div><div dir="ltr">Hi all,<div><br></div><div>I've seen a ton of blog posts written about all of the cool and exciting things about Swift, but I haven't see anything really about the downsides (besides the occasional post about pain points with interoperability). What's of biggest concern to me when considering migrating my company's app from Objective-C to Swift is binary size. Swift binary size seems to be several times larger than Objective-C, and I'm curious what data there is in the community to support this suspicion.</div><div><br></div><div>For some quick data points, I created a single view controller project in Obj-C and one in Swift, turned off bitcode to get a better idea of what the binary size on device would be, and archived them. I did this in Xcode 8 Beta 1 using Swift 3 so that I'd make sure to get any binary size improvements in Swift 3. </div><div><br></div><div>The Obj-C IPA file was 639 KB. The Swift IPA file was <b>23.6 MB</b>. I know that the Swift runtime libs are about 4.5 MB, but subtracting that, the Swift IPA file is still <b>30x bigger than the Obj-C equivalent</b>. Next, I tried adding a simple table view controller, a Person model with a first and last name, and a data source that puts the first and last names in the table view in an attempt to make a functioning app. However, the binary sizes were about the same (the Obj-C one actually decreased to 635 KB).</div><div><br></div><div>When we're talking about binary sizes this small, it's not a big deal, but my company's app is currently 81 MB, about 35 MB of which is code, and the rest is assets. If the code part of the binary size increases by orders of magnitude like this, we'll go way over the 100 MB cellular limit that Apple has set. This is also a really bad experience for customers in emerging markets like China and India that have poor connections.</div><div><br></div><div>Can anyone confirm or deny that Swift binary size is orders of magnitude larger than Objective-C? I'm looking for the specific increase we'll see to take to my management in order to make a justification for whether it's worth it for our customers.</div><div><br></div><div>Thanks!</div><div><br></div><div>Seth Friedman</div></div></div></div><div style="font-size:13px"><div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">-Saagar Jha</div></div>