Skip to content

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

Description

@shirakaba

Comparing the npm packages for:

  • @nativescript/ios@7.0.3 (first image; 87.6 MB for the whole folder)
  • @nativescript/ios@8.3.3 (second image; 290 MB for the whole folder)

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?

Activity

  1. changed the title [-]npm package ballooned in size since v7 and introduction of multi-architecture support[/-] [+]npm package increased from 87.6 MB to 290 MB since v7 and introduction of multi-architecture support[/+] on Jan 28, 2023
  2. rigor789 commented on Apr 13, 2023

    @rigor789
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions