Xamarin iOS 应用程序是否过度膨胀? [英] Are Xamarin iOS apps bloated unreasonably?

查看:25
本文介绍了Xamarin iOS 应用程序是否过度膨胀?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Xamarin iOS 开发一个相当简单的应用程序,我为 .app 文件获得的最小大小为 13.5 MB.

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.

我已执行所有推荐的优化 - 无调试符号、LVVM 代码生成、thumb-2、链接所有程序集、仅单一架构 (ARMV7).

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

第一个问题是,我的 13.5 MB 听起来是否符合 Xamarin iOS 的预期,还是我可能做错了什么?

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?

第二个问题是,Xamarin iOS 为等效的本机实现(大致)增加了多少额外的大小开销?

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

第三个问题是,可以将 Hello World 应用程序编译成使用 Xamarin iOS 的大小大约是多少?

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

第四个问题是,原生的 Hello World 应用程序可以编译到多小?

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

推荐答案

.dSYM 是一个包含调试符号的目录.这不是您作为应用程序的一部分(向您的最终用户)提供的东西.请注意,即使在非调试版本中也会产生这种情况,因为它允许您符号化崩溃报告(来自运行 release 二进制文件的最终用户).

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).

对于真正的应用程序大小,您需要查看.app目录.

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

您可以通过今年观看Evolve 视频 高级 iOS 构建机制.这也将回答您的其他问题.

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.

这篇关于Xamarin iOS 应用程序是否过度膨胀?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆