• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why is an empty iOS app 72kbytes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is an empty iOS app 72kbytes?


  • Subject: Why is an empty iOS app 72kbytes?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 07 Nov 2013 10:58:57 -0800

I built a minimal iOS app target in Xcode 5 — just a bare empty app template whose appDidLaunch method does nothing — and the size of the binary in an archive build is 144kbytes. It’s fat, so that’s roughly 72kbytes per architecture. That’s a lot bigger than I expected, since there’s less than 1k of code in the app and all the standard libraries are dynamic. Where’s that size coming from?

(Context: Marketing wants to know “how big is Couchbase Lite?” which is hard to answer because it builds as an iOS static library, which is a huge file because of all the intermediate symbol info for the linker. So I’ve been measuring by building a minimal app that links with and initializes the library, and quoting the size of that, figuring that the overhead of a truly-empty app was negligible. Only it turns out it isn’t; 72kbytes of overhead may not seem like a lot, but it’s about 8% of the quoted size of our library.)

I’ve been poking at the binary file with otool, but my limited skills can’t find anything in there that’s bigger than 1k or so.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Xcode hangs after selecting folder from File.Open - now hangs on launch
  • Next by Date: Re: Xcode Server: Force load of distribution profile?
  • Previous by thread: Re: Xcode hangs after selecting folder from File.Open - now hangs on launch
  • Next by thread: Re: Xcode Server: Force load of distribution profile?
  • Index(es):
    • Date
    • Thread