1. 程式人生 > >減小unity iOS版包大小方法

減小unity iOS版包大小方法

參考 這個StackOverFlow帖

https://docs.unity3d.com/550/Documentation/Manual/iphone-playerSizeOptimization.html

 1. Release build instead of debug build. 

2. Target Device: only iPhone(in Unity settings). 

3. Target Platform: armv7

If you have the Unity Pro iPhone Pro license you could change the stripping level to 

use micro mscorlib. Read Optimizing the Size of the Built iOS Player for more information.

因此Unity官方也介紹了幾種降低包體大小的方法:
1.替換jpg,使用psd,減少重複資源
2.剔除不必要的資源
3.打包時檢視log紀錄,由此判斷需要減少的檔案型別
4.優化,壓縮圖片,減少圖片大小
5.優化,壓縮網格和動畫,減少檔案大小
6.剔除system.dll和system.xml.dll ,儘量不要依賴他們,或用其他元件來代替。