Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Xamarin iOS apps bloated unreasonably?

I'm developing a reasonably simple app using Xamarin iOS and the smallest size I've gotten for the .app file is 13.5 MB.

I've performed all the recommended optimizations - no debug symbols, LVVM code generation, thumb-2, link all assemblies, single architecture only (ARMV7).

The first question is, does my 13.5 MB sound like something to be expected from Xamarin iOS, or am I likely doing something wrong?

The second question is, how much extra size overhead does Xamarin iOS add to an equivalent native implementation (roughly)?

The third question is, roughly how small can a Hello World app get compiled down to using Xamarin iOS?

The fourth question is, roughly how small can a native Hello World app get compiled down to?

like image 997
Herman Schoenfeld Avatar asked Sep 25 '13 16:09

Herman Schoenfeld


1 Answers

The .dSYM is a directory that includes debugging symbols. This is not something you're shipping as part of your application (to your end users). Note that this is produced even in non-debugging builds since it allows you to symbolicate crash reports (that comes from end users running the release binary).

For the real application size you need to look at the .app directory.

You can learn quite a few tricks to reduce your application size (and build time) by watching this year Evolve video Advanced iOS Build mechanics. That will also answer the other questions you had.

like image 62
poupou Avatar answered Oct 07 '22 01:10

poupou