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

相关文章:

Using a Custom Toolchain in Xcode
Xcode 10/iOS 12适配
xcodebuild:code signature invalid
解决 Xcode 下载 iOS Simulator 频繁失败的问题
iOS:清除Xcode缓存

发表留言

您的电子邮箱地址不会被公开,必填项已用*标注。发布的留言可能不会立即公开展示,请耐心等待审核通过。