static library has big size

喜欢而已 提交于 2019-12-06 00:07:15

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

You cant. Static libraries include all the code that they reference in the form of frameworks inside their executable.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!