Search Unity

Why does an iOS build include asset bundles from all other platforms you target?

Discussion in 'Asset Bundles' started by Jelmer123, Sep 18, 2019.

  1. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    243
    Working on multiple platforms, just noticed that an iOS build also includes all other platform asset bundles, that all end up in the final app.
    This eats up space of course and it doesn't make sense..
    Something Unity can fix?


    in Xcode, archive the project
    In the archive:
    products > application > "app name" > data > Raw
    Here there's folders with asset bundles from all platforms I work with:
    iOS
    Maxos standalone
    WebGl
     
  2. Cris_2013

    Cris_2013

    Joined:
    Nov 25, 2017
    Posts:
    39
    As far as I know you need to delete the asset bundles from other platforms from your StreamingAssets folder before building for iOS (I believe Unity has plans to address this issue if it hasn't been addressed yet)
     
    Jelmer123 likes this.