Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standalone app iOS size too large (218mb) with Expo

Before starting, sorry for my English ! I’ll do my best !

I wanted to build my app for iOS, so, I used “exp build:ios” but that’s makes me an IPA too big ( > 200mb) So I tried to detach my app to compile with ExpoKit, but that’s not a standalone app… That’s makes me an app whose connect to the expo server for launch my code ( and download it every time I launched it )

How should I build my app, and have it with better size ( around of 30mb )

Thank you for your help !

like image 842
Raph Avatar asked Jun 22 '18 14:06

Raph


People also ask

How do I reduce the size of the app Expo?

Then after you need to run expo build:android command to create and apk. If you want to upload it in play store then it much better that you run expo build:android -t app-bundle and upload it. At play store bundle reduce their size approx. 30-40% of its actual size.

Is Expo good for app development?

Expo comes with a lot of native APIs out of the box for both iOS and Android. This makes the developers job of adding native features to the app fairly easy. Some of the common native features provided by Expo are, Camera, file system, location, social authentication, push notifications, to name a few.

What is a standalone Expo app?

Expo Go is an app where you can test your app in it (when you scan the QR Code after expo start , your app is launched inside Expo Go app). Standalone Expo app is your application when you upload it on the store.


1 Answers

Hi! Your IPA contains bitcode, as well as slicing for a few different device architectures, so it doesn't represent the final binary that will appear in the App Store.

The Expo Client app, which is strictly larger than the code contained in your CRNA app, is currently 19.8 MB (compressed) in the App Store, and 26 MB when extracted onto a device. This varies slightly between versions as we update our SDK, but that's the ballpark figure.

https://forums.expo.io/t/ios-standalone-app-size-is-too-big

In addition to this, you may want to consider which assets you are bundling. By default every asset you use is bundled in the binary, but any of them can be downloaded on demand. You can go into app.json and remove the assetBundlePatterns key, then rebuild.

Read more at https://expo.fyi/managed-app-size

like image 173
brentvatne Avatar answered Sep 28 '22 13:09

brentvatne