we have large (40mb) substantially c++ ios app. since ios requires 32 , 64-bit slices of code, have 86mb app... not useful trying total code+data download under 100mb.
we suspect there may large amounts of static data in our app's executable. man page unix nm offers --sort-size , --print-sizes options should give need. xcode nm doesn't appear support this.
is there script available re-ordering? (it wouldn't hard write, seems nonsensical there nobody on web discussing this!)
around 50% of our code cross-compiled via unity , il2cpp, it's possible can use .net introspection tools on il that, i'd prefer keep analysis tied native size if possible. concerned though, il2cpp generating large amounts of c# metadata, of course since ends in executable gets encrypted , doesn't compress in ipa.
alternatively, has used other process ios executable size reduction?
you may able use otool instead of nm size information want, although i'm not certain. there brief build size analysis guide on unity forums might helpful.
you correct significant portion of executable c# metadata. however, working remove metadata executable, , instead store in external file. latest unity patch releases have of metadata externalized now, , within few weeks should external. should able find metadata files in data/managed/metadata directory in ios build output directory.
Comments
Post a Comment