Are Xamarin iOS apps bloated unreasonably?

前端 未结 2 1664
一向
一向 2020-12-28 09:31

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 optim

相关标签:
2条回答
  • 2020-12-28 09:49

    Xamarin apps are a bit larger in release mode, as one would expect. As an example, looking at my binaries from two shipping apps, the binary + dlls are around 12m and 18m (I think I need to look into why the 18m one is so much bigger...). I would guess if I had done these in objective-c they would have been around half that size, from past experience building native apps.

    If you're running debug hardware builds, they are enormous. the 12m example above jumps up to 96M (?!) for binary + dlls. Before I checked this, I had in my head that they doubled in size to deal with software debugger, but I guess there's a whole lot of other crap going in that I wasn't aware of.

    0 讨论(0)
  • 2020-12-28 10:06

    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.

    0 讨论(0)
提交回复
热议问题