Unity iOS 构建大小非常大 [英] Unity iOS Build size is way big

查看:34
本文介绍了Unity iOS 构建大小非常大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正准备为 iOS 制作一款 2D 益智游戏.当我压缩我的项目时,它的大小大约变为 16MB.当我在 xcode 中构建它时,项目大小变为 780MB,当我归档时它变为 1.5GB.

Currently I'm on the verge of making a 2D puzzle game for iOS. When I zip my project it's size become 16MB approximately. When I build it in xcode the project size become 780MB and when I archive it then it becomes 1.5GB.

但是当我将它上传到试飞进行内部和外部测试时,真正的问题就开始了,然后在 iTunes 连接中,它的压缩大小变为 143MB通用安装大小 变为 >285MB,对于不同的 iPhone,安装大小平均变为 160MB.现在我认为 160MB 对于一个简单的 2D 益智游戏来说是非常大的安装文件,并且在我发布它时可能会导致严重的丢失.

But the real problem begins when I upload it to test flight for internal and external testing then in iTunes connect it's compressed size became 143MB and Universal install size become 285MB and for different iPhone install size become 160MB in average. Now I think 160MB is very large install file for a simple 2D puzzle game and can cause major drop outs when I publish it.

统一版本:5.4.2

Unity version: 5.4.2

脚本后端:IL2CPP

Scripting backend : IL2CPP

Api 兼容级别:.Net 2.0 子网

Api compatibility Level: .Net 2.0 subnet

谁能告诉我我可以做些什么来解决这个问题,或者我发布时大小会减少.

Can anyone tell me what can I do to solve this problem, or the size will reduce when I'll publish it.

提前致谢.

推荐答案

为了解决这个问题(我的应用在 iOS 上是 1.7 GB,而 Android 的 apk 文件只有 50 MB)我改变了 Unity 构建的压缩方法:

To solve that (My app was 1.7 GB for iOS, while Android's apk file is just 50 MB) I changed the compression method for Unity build:

Build Settings -> Compression Method -> LZ4HC

现在只有 ~80MB(而不是 1.7GB).希望它可以帮助某人.

Now it is just ~80MB (instead of 1.7 GB). Hope it helps someone.

这篇关于Unity iOS 构建大小非常大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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