iOS ArcGIS.framework太大,因此.ipa太大 [英] iOS ArcGIS.framework too large, hence large .ipa size

查看:91
本文介绍了iOS ArcGIS.framework太大,因此.ipa太大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS版ArcGIS.framework维护一个应用程序.我正在从版本10.2〜升级到100+.我延长了希望,希望在某个时候可以解决应用程序大小的问题.带有较新框架的应用程序大小从仅26MB增加到超过360MB.客户将不会接受.我一直在寻找一种减少应用程序大小且不使用应用程序稀疏的好简单方法,这需要启用位码,而由于某些其他原因,我无法启用位码.

I are maintaining an application with ArcGIS.framework for iOS. I am upgrading from version 10.2~ to 100+. I have prolonged this hoping that at some point the application size problem will be resolved. The application size with the newer framework went up from just 26MB to over 360MB. This will not be accepted by clients. I have been searching for a good and simple way of reducing the app size without using app thinning which requires bitcode to be enable which for some other reasons I can't enable.

将x86_64和i386体系结构剥离不会大大减少框架的大小.

Stripping x86_64 and i386 architectures does not reduce the framework size that much.

在编译时是否可以为Xcode提供标志,其他编译器或链接设置?

Are there flags, other compiler or linking settings we can provide Xcode with at compile time?

推荐答案

您可以在无需启用位代码的情况下利用App Thinning的优势,如果您的目标是iOS 9及更高版本,则只会看到Thined .ipa的部署到任何设备(尽管将生成Universal .ipa并将其上传到iTunes Connect).

You can take advantage of App Thinning without having to enable bitcode, and if you're targeting iOS 9 and upwards you will only ever see a Thinned .ipa deployed to any device (although a Universal .ipa will get generated and uploaded to iTunes Connect).

实际上,这意味着如果您使用的是Runtime 100.x,则您的应用程序将使用应用程序细化功能.

In practice, that means if you're using Runtime 100.x, your app will use app thinning.

这是我们评估的方法,以了解iOS 9+设备(运行时100.2所需)最终会发生什么:

Here is how we assess this to see what will end up on an iOS 9+ device (required for Runtime 100.2):

  1. 在Xcode的菜单中,选择Product-> Archive(确保已将通用iOS设备"或实际设备选为目标设备).
  2. 完成后,管理器"窗口将弹出,您应该能够在档案"标签中看到最新的档案.
  3. 选择档案,然后单击右侧的Export按钮.
  4. 选择Development并单击下一步".
  5. 根据要求选择团队.
  6. App Thinning菜单中,选择特定设备,然后单击下一步".
  7. 选择您的签名方法,然后单击下一步".
  8. 查看摘要,然后点击导出".
  1. In Xcode's menu, select Product -> Archive (make sure you have Generic iOS Device or an actual device selected as the target device).
  2. Once finished, the Organizer window should pop open and you should be able to see the latest archive in the archives tab.
  3. Select the archive and hit the Export button on the right.
  4. Choose Development and hit Next.
  5. Choose a team if asked.
  6. In the App Thinning menu, choose a specific device and hit Next.
  7. Select your signing method and hit Next.
  8. Review the summary, and hit Export.

最后,您将得到一个文件夹,其中包含已精简的.ipa以及有关精简过程的一些报告,包括希望在设备上看到的使用情况.

You will end up with a folder containing the thinned .ipa and some reports on the thinning process, including what usage to expect to see on the device.

例如,以下是针对iPhone 8(禁用了位码)的运行时应用程序的App Thinning Size Report.txt:

For example, here is the App Thinning Size Report.txt for a Runtime app targeting iPhone 8 (with bitcode disabled):

App Thinning Size Report for All Variants of MyRuntime100App

Variant: MyRuntime100App-iPhone 8.ipa
Supported devices: iPhone 8
App + On Demand Resources size: 31 MB compressed, 89.7 MB uncompressed
App size: 31 MB compressed, 89.7 MB uncompressed
On Demand Resources size: Zero KB compressed, Zero KB uncompressed

因此,上述应用将是31 MB的无线下载,并在设备上占用89.7 MB(该示例恰好包含19.8 MB的移动地图包).

So the above app would be an over the air download of 31 MB and would take up 89.7 MB on the device (and that example happens to include a 19.8 MB Mobile Map Package).

希望有帮助.

我也鼓励您将以后的问题发布到我们的 iOS Runtime SDK论坛(如果可以).

I would also encourage you to post future questions to our iOS Runtime SDK forum if you can.

这篇关于iOS ArcGIS.framework太大,因此.ipa太大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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