Anas Te
Anas Te

Reputation: 13

.ipa have a large size how to reduce it in React Native?

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)

Upvotes: 0

Views: 1271

Answers (1)

EmilioPelaez
EmilioPelaez

Reputation: 19932

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.

Upvotes: 0

Related Questions