Xcode Build Settings
原创 2020-01-10
整理的一份Xcode 11.3 Build Settings推荐配置,对于减小包大小和性能优化有一定帮助。
一,Build Options
Debug Information Format
- Debug:DWARF
- Release:DWARF with dSYM file
Enable Bitcode = Yes
二,Deployment
Deployment Postprocessing
Deployment Postprocessing是Deployment部分的开关,建议Release模式下设置为Yes,Debug设置为No。
Strip Debug Symbols During copy = Yes
Strip Linked Product = Yes
Strip Style = All Symbols
Strip Swift Symbols = Yes
三,Linking
Dead Code Stripping = Yes
四,Apple Clang - Code Generation
Debug Information Level = Compiler Default
Generate Debug Symbols = Yes
Link-Time Optimization
- Debug:No
- Release:Incremental
Optimization Level
- Debug:None
- Release:Fastest、Smallest[-Os]
Symbols Hidden by Default = Yes
五,Swift Compiler - Code Generation
Compilation Mode
- Debug:Incremental-增量编译
- Release:Whole Module-全模块编译
Optimization Level
- Debug:No Optimization
- Release:Optimize for Speed
相关文章:
iOS Link Map
iOS WKWebView详解及JS Bridge同步调用问题
iOS 抓取网络数据包
iOS 13 适配
iOS启动优化之二进制重排
发表留言
您的电子邮箱地址不会被公开,必填项已用*标注。
留言板