Building Faster in Xcode

WWDC 2018

Posted by Den on June 26, 2018 · 5 mins read
Building Faster in Xcode

Building Faster in Xcode

WWDC 2018

Building Faster in Xcode

WWDC 2018

Parallelized Build Timeline

Examine Tests Dependencies

Reduce Dependency Exposure (Code Gen)

  • Reduce dependencies → Increase performance
  • Move to the front of our build process
  • Parallelized Build
Code Gen

Parallelized Target Build Process

Customized build process

Dependency Cycle Detection

Measuring Build Time

Command

Source-Level Improvements

Turn off [ Whole Module ] For Debug Builds

Dealing with Complex Expressions

Increasing build efficiency

Use Explicit Types for Complex Properties
Break Apart Complex Expressions
Use Protocol

Mixed-Source App Targets

Use private → Hide function

Keep Your Generated Header Minimal

Turn off [ Swift 3 @objc Interface ]

Keep Your Bridging Header Minimal

Use Category or move to .m