ios icon indicating copy to clipboard operation
ios copied to clipboard

npm package increased from 87.6 MB to 290 MB since v7 and introduction of multi-architecture support

Open shirakaba opened this issue 2 years ago • 1 comments

Comparing the npm packages for:

image image

... why has objc-metadata-generator gone from:

  • a single 22.6 MB binary (x86_64), to;
  • a 53.8 MB (arm64) and a 58.7 MB (x86_64) binary?

Shouldn't each binary both be closer to 22.6 MB? Has clang nearly tripled in size from v8.0.1 to v13.0.1?

Also XCFrameworks.zip has increased from 57.4 MB to 134.4 MB. This is closer to a tripling in size than a doubling. Have we not spotted something that's increasing the size dramatically?

shirakaba avatar Jan 28 '23 02:01 shirakaba

I believe llvm did increase in size quite a bit from 8.0 -> 13.0 and we've also had to compile for both arm64 and x86_64 to support m1/m2 macs.

The XCFrameworks size also increased as we're now including the debug symbols (DSYMS) inside the xcframework rather than a separate zip on the releases page on GitHub - however these are stripped by XCode when building, so shouldn't affect app size in any way - just the npm package itself.

rigor789 avatar Apr 13 '23 11:04 rigor789