捆绑尺寸很大 [英] Bundle size is big

查看:92
本文介绍了捆绑尺寸很大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法减少框架 ScoutMaps-iOS-SDK 的大小,因为现在捆绑的大小是如此巨大,用户可能不会下载应用程序> 100 Mb。

Is there a way to reduce the size of the framework ScoutMaps-iOS-SDK, because right now the size of the bundle is so huge and the user probably won't download an app with >100 Mb.

推荐答案

对于有兴趣的人:

To最小化项目的大小,您可以执行以下操作:
基准测试:解压缩演示项目 - 173.883.119字节(磁盘上195,7 MB)

To minimizing the size of the project you can do the following: Benchmark: demo project unpacked – 173.883.119 bytes (195,7 MB on disk)

事物可以在iOS上删除:
1.从SKAdvisorResources.bundle删除所有音频通知,但是en_us(注意:您可以按需托管和下载音频文件)
2.删除Outsidetyle和Grayscale样式SkMaps.bundle(如果你没有使用这些syles)
演示项目解压 - 115.890.904字节(磁盘上118,5 MB)
3.删除所有其他架构但armv7(应该有一个arm64上的性能损失很小,但由于你排除了整套架构,因此.ipa的大小应该是con这个更改将在最终的.ipa文件中显示

Things that can be removed for iOS: 1. Remove all audio advices but en_us from SKAdvisorResources.bundle (Note: you can host & download the audio files on demand) 2. Remove Outdoorstyle and Grayscale style from SkMaps.bundle (if you're not using these syles) Demo project unpacked - 115.890.904 bytes (118,5 MB on disk) 3. Remove all other architectures but armv7 (there should be a small performance penalty on arm64, but since you exclude an entire set of architectures the size of the .ipa should be considerable smaller) - this change will be visible in the final .ipa file

可以为Android删除的内容:
在Android上,您可以重复步骤1和2.
关于架构 - 如果你可以控制你将使用哪些Android设备,你也可以删除未使用的库(我们默认使用/libs/armeabi/libsngnative.so,/ libs / armeabi-v7a / libsnative.so和/libs/x86/libsnative.so)

Things that can be removed for Android: On Android you can repeat steps 1 and 2. Regarding architectures – if you have control regarding which Android devices you will be using, you can also remove the unused libraries (we have by default /libs/armeabi/libsngnative.so, /libs/armeabi-v7a/libsnative.so and /libs/x86/libsnative.so)

这些是目前可以做的事情,以减小尺寸 - 但我们仍在工作关于下一版本的改进

These are the things that can be done for the moment to decrease the size- but we're still working on this improvement for the next versions

这篇关于捆绑尺寸很大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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