-
Notifications
You must be signed in to change notification settings - Fork 29k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: sizeReducing IPA/APK/JS sizesReducing IPA/APK/JS sizesplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Submitting a minimal app currently exceeds the 10mb uncompressed size limit with a
ITMS-90865: Thinned app clip size is too large
on 1.24.0-8.0.pre.344
.
Compressed, thinned IPA is 4.6mb, but the current uncompressed breakdown is:
Total: 11,289,773 bytes
[ 320] AppClip.app
├── [ 90K] AppClip
├── [ 34K] Assets.car
├── [ 128] Base.lproj
│ ├── [ 160] LaunchScreen.storyboardc
│ │ ├── [2.2K] 01J-lp-oVM-view-Ze5-6b-2t3.nib
│ │ ├── [ 258] Info.plist
│ │ └── [ 896] UIViewController-01J-lp-oVM.nib
│ └── [ 160] Main.storyboardc
│ ├── [1.8K] BYZ-38-t0r-view-8bC-Xf-vdC.nib
│ ├── [ 258] Info.plist
│ └── [ 923] UIViewController-BYZ-38-t0r.nib
├── [ 128] Frameworks
│ ├── [ 192] App.framework
│ │ ├── [1.7M] App
│ │ ├── [ 794] Info.plist
│ │ ├── [ 96] _CodeSignature
│ │ │ └── [2.7K] CodeResources
│ │ └── [ 160] flutter_assets
│ │ ├── [ 2] AssetManifest.json
│ │ ├── [ 2] FontManifest.json
│ │ └── [725K] NOTICES
│ └── [ 192] Flutter.framework
│ ├── [7.4M] Flutter
│ ├── [ 956] Info.plist
│ ├── [ 96] _CodeSignature
│ │ └── [2.0K] CodeResources
│ └── [781K] icudtl.dat
├── [4.2K] Info.plist
├── [ 8] PkgInfo
├── [ 96] _CodeSignature
│ └── [6.7K] CodeResources
└── [104K] embedded.mobileprovision
The App.framework/App breakdown is:
The flutter package breakdown is:
The Flutter.framework/Flutter breakdown (on an equivalent Android libflutter.so, since we don't have a tool to break down iOS dylibs yet dart-lang/sdk#44278):
Possible explorations
-
[90k]
Dig more into what the AppClip binary is. -
[1.6m]
Build App.framework/App with split-debug-info. -
[781k]
The NOTICES file is huge. Since the uncompressed size is being measured here, there might be de-duplication potential. Deduplicate NOTICES #71102 -
[1m]
The 70kb ld-temp.o and the 950kb unattributed code in the Flutter.framework/Flutter / libflutter.so is suspicious.
jason-bb, mono0926, daniil-shumko, TheJulianJES, bajabob and 35 morenaoisegolden, ronba, JosueMCapita, SuhwanCha, ggirotto and 1 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: sizeReducing IPA/APK/JS sizesReducing IPA/APK/JS sizesplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team