转载请注明,来自:
http://blog.csdn.net/skyman_2001
我们客户端刚开始编译出来有20MB,通过下面措施成功瘦身为6MB:
For the release build:
1. "Deployment Post Processing" is enabled (otherwise the whole stripping process isn't initiated)
2. "Strip Debug Symbols During Copy" is enabled
3. "Strip Linked Product" is enabled
4. "Strip Style" is set to "Non-Global Symbols"
1. "Deployment Post Processing" is enabled (otherwise the whole stripping process isn't initiated)
2. "Strip Debug Symbols During Copy" is enabled
3. "Strip Linked Product" is enabled
4. "Strip Style" is set to "Non-Global Symbols"
5. check "symbols hidden by default"
6. __attribute__((visibility("default"))) void NeedExport() {}
6. __attribute__((visibility("default"))) void NeedExport() {}