I built universal static library with help of this template
The problem that is my library libWrapper.a has size 1.3 mb??? :0 while my source code has 130 kb.
How I can reduce the size of my static lib?
Other strange thing -
Each lib has the same size - 1.3 mb. I supposed that universal (fat) libs should have bigger size.
Also make sure that you set Generate Debug Symbols to NO in your build settings. This can reduce the size of your static library by about 30%.
in terminal run
strip -x [youStaticlib.a]
Description
For dynamic shared libraries, the maximum level of stripping is usually
-x (to remove all non-global symbols).
if you want to know strip other parameter, in terminal run
man strip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With