skip to Main Content

After upgrading to Xcode 16 I’ve noticed that my app grew up in size, from 10Mb to 165Mb(!).

I’ve presumed it’s related to bitcode settings removal in this version of Xcode, so I’ve added my own strip symbols step to build phases (as proposed in https://docs.emergetools.com/docs/strip-binary-symbols), but nothing has changed.

I need an advice, what else to check in order to decrease app size back to normal.

2

Answers


  1. So, for me it could possibly be one of the following things:

    • Removal of bitcode support
    • Inclusion of unnecessary architectures

    for that you can check your build settings and ensure you’re excluding unnecessary architectures like x86_64, i386, and arm64e for release builds.

    Make sure the "Build Active Architecture Only" option is set to No. You can also use a script in a Run Script Phase to strip simulator architectures from embedded frameworks, ensuring they don’t bloat the app.

    Also you can review your assets to ensure only necessary assets are included in your build. Large assets should be compressed or loaded on-demand to further reduce the app’s size.

    You can also read from the official Apple documentation this document:
    https://developer.apple.com/documentation/xcode/reducing-your-app-s-size

    It explains way better any point.

    Also confirm that "Enable Bitcode" is set to No in your build settings and ensure that your build configurations are correctly set to Release for distribution.

    In the last case you can perform a clean build by selecting Product > Clean Build Folder in Xcode to remove any old artifacts and check again the sizze.

    You can always compare the file that you had before and after the update:
    ios/projectId.xcodeproj/project.pbxproj

    I hope it gives you at least one direction to go! 🙂

    Login or Signup to reply.
  2. I tried all this steps but that does not work for me

    1. Removed Bitcode Support
    2. Excluding Unnecessary Architectures
    3. Build Active Architecture Only->No

    also I did clean before making new archive build.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search