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

查看:142
本文介绍了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 connect中压缩大小变为 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.

预先感谢。 p>

Thanks in advance.

推荐答案

要解决此问题(我的应用程序对于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.7 GB)。希望它能对某人有所帮助。

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

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

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