0

I have a small project written in React Native CLI, After Archive it and export the .ipa file I got a large size it's 172MB!!

enter image description here

I have enabled Bitcode in release mode, And disable all Flipper stuff but the size still the same (large)

How can I reduce it?

Note I don't have any assets like fonts big images, just a splash screen image (4kb)

Giorgio
  • 1,973
  • 4
  • 36
  • 51
Anas Te
  • 1
  • 1

1 Answers1

0

IPAs are ZIP files. In your IPA file, replace .ipa to .zip, expand it, right click on the .app file and click Show Contents. There you can see what parts of the app are what's causing it to be so big.

If I had to guess, though, the binary is really big because it's bundling the whole react native runtime. There's no a lot you can do about this.

If you're building with a Debug configuration, changing it to Release will strip debug symbols and make your binary smaller.

EmilioPelaez
  • 18,758
  • 6
  • 46
  • 50
  • 1
    I have a package named react-native-geolocation-service it's required to add swift file and the bridging header so after deleting the package and related stuff (swift & bridging files) I got this size ( from 172 to 61 MB) – Anas Te Feb 18 '21 at 17:25