一,说明.
项目需求:最近开发的SDK,要提供给其他公司使用, 但是开发后的.framework的大小为3M. 但是某程APP不愿意,说包太大,要瘦身.所以,只能网上找资料.下面说说我的的做法,亲测试可以的.我一篇博客已详细介绍了开发SDK包的过程:
iOS之开发SDK(.framework和.bundle)(包括支持ATS和ssl双向验证)
1,
- 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 your target's build settings look for 'Optimization Level'. By switching that to 'Fastest, Smallest -Os' you'll permit the compiler to sacrifice some spee