Build Size iOS

Mar 24, 2015 at 10:02 AM
Hi there,

I want to use libcpprest for a iOS project. The building of the library now works and i have the .a files. The problem I have is that the size of the lib is quite large with 150MB for the universal build and 82MB for the arm build. Is there a chance that I can shrink the size of the library with (safe) non static linking or some magic compiler switch?

Mar 24, 2015 at 3:53 PM
Hi Simon,

Our FAT binary consists of quite a few different architectures. If you only need a specific one you could remove all the others, currently our binary consists of: x86_64, i386, arm7s, armv7, and arm64.

My understanding is iOS doesn't allow dynamic libraries.

Mar 24, 2015 at 9:01 PM
Hi Simon,

One of my colleagues just informed me that Apple has recently started allowing dynamic libraries for iOS. You could take a look at trying to rebuild the library to not be static linking. Let us know if you figure it out or have any success.