非常规瘦身

BuildSettings下
Deployment-> Deployment Postprocessing ->NO
Skip Install ->No
Strip Debug Symbols During Copy -> Release ->YES
Strip Linked Product -> Release ->YES
Strip Style -> Release -> Non-Global -> Symbols

Apple LLVM Code Generation -> Debug Information Level -> Line tables only
Optimization Level -> Release -> Fastest,Smallest
Symbols Hidden by Default Release -> YES
Make Strings Read-Only ->YES

Apple LLVM Language – Objc -> Enable Objective-c Exceptions -> NO
– C++ -> Enable C++ Exceptions -> NO
Other C Flags添加-fno-exceptions
以上可能会导致异常 捕获不了 之间Crash

    原文作者:cuagain
    原文地址: https://www.jianshu.com/p/1eebb852e859
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞