Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Christopher Winstanley · Sep 16, 2010 at 10:44 PM · buildiphonegamexcodeunityiphone

Unity iPhone Build gaining 20MB in Xcode

Hi Everyone,

just having a problem getting down to my project down to the 20MB download limit. The editor log says:

  • Textures 18.8 mb 71.2%
  • Meshes 162.2 kb 0.6%
  • Animations 0.0 kb 0.0%
  • Sounds 1.5 mb 5.8%
  • Shaders 0.0 kb 0.0%
  • Other Assets 49.0 kb 0.2%
  • Levels 91.1 kb 0.3%
  • Scripts 144.7 kb 0.5%
  • Included DLLs 5.6 mb 21.3%
  • File headers 40.4 kb 0.1%

Complete size 26.4 mb 100.0%

I'm going to reduce the textures and thing but I was wondering if anyone knows how to reduce the included dlls I'm sure I'm not using them all. Also when I build it in XCode the app size goes to 43.7MB does anyone know why this happens.

Thanks

Chris

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Jaap Kreijkamp · Sep 17, 2010 at 01:31 AM

Making a <20MB iPhone project with Unity is next to impossible I think unless you have something really really simple. Especially if you already on 18MB Textures! So, forget the 20MB and focus on getting your game really really good :-)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
2

Answer by Mantas-Puida · Sep 18, 2010 at 09:14 AM

I'm assuming you are using Unity 3.0. Simple checklist how to make your distribution as small as possible

  • Minimize your assets: make all textures PVRTC compressed and reduce texture resolution if possible; minimize uncompressed sounds.

  • Set iOS Stripping Level to Use micro mscorlib.

  • Set script call optimization to Fast but no exceptions.

  • Don't use anything that lives in System.dll or System.Xml.dll in your code. Those two are not compatible with micro mscorlib.

  • Remove unnecessary code dependencies

  • Remove unnecessary assets

  • Use .Net 2.0 subset as Api Compatibility Level Note: .Net 2.0 subset has limited compatibility with other libraries.

  • Set Target Platform to armv6 (OpenGL ES1.1).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Eric5h5 · Sep 16, 2010 at 11:34 PM

To eliminate the included DLLs, don't use features that add them. For example, using System.Text.RegularExpressions adds about 1MB. (No, unfortunately there's no simple way I know of to know what adds DLLs and what doesn't.) The Unity engine adds some MBs, especially if you're building for both ARM6 and 7; then the whole engine is basically added twice.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Unity iOS: mixing windows AND mac development 2 Answers

Building from Unity into XCode to deploy onto the iPhone 1 Answer

Unity 2019 iOS build problem 0 Answers

I can run the Unity3D Game through XCode, but can't run it directly through iPad. 3 Answers

Help on iOS Build in the iPhone 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges