Advanced Techniques to Reduce the Build Time in Xcode

This workshop is designed to understand and discuss the techniques that help us to build the Xcode projects fast so that you can focus more on development.

Understand behind the scenes of Xcode Build Process

[ 9.30 AM - 10.15 AM]

In this session, we will understand the number of tasks executed by Xocde build system when you hit CMD + B. we will discuss the following topics.

  1. What is build dependency graph
  2. Understand External and Implicit dependencies in the Xcode project
  3. What is Parallelized build
  4. About llbuild build system
  5. Swiftc and Clang (apple official compiler for the C language family) compilers

Measuring the build time

[ 10.15 AM - 10.45 AM]

In this session will cover the topics about how to measure the build times of Xcode projects. We will discuss the following topics

  1. Measure the build time of targets and each file
  2. How dependency graph is different for ObjectC and Swift
  3. What are clean build and incremental builds

Tweaking the Xcode build settings to reduce the build time

[10.45 AM - 11.30 AM]

In this session, we will understand what all are the options that we can tweak to get the faster build times so one can focus more time on development

  1. Parallelize Swift builds
  2. Compilation mode single vs modular
  3. Optimization level
  4. Improve build script phases
  5. Build active architecture only, how will that reduce the build time.
  6. Limit Objc interference
  7. Link Frameworks automatically

Coffee Break [ 11.30 AM - 11.45 AM]

Tweaking the Codebase to reduce the build time

[11.45 AM - 12.15 PM]

In this session, we will understand why we should need to tweak our codebase to get better and faster build times.

  1. Understand Swift type inference in complex expressions
  2. Benchmark and Future proof the build times
  3. Understand Objc interference
  4. Understand the Frameworks impact on build times.

Case study of an application

[ 12.15 PM - 1.00 PM]

In this session, we will take a complex application and will perform some of the tweaks discussed to get the build time from 60 ~70 seconds to 15 ~ 20 seconds.

Q & A [1.00 PM - 1.30 PM]

Workshop Instructor

Kumar Reddy is an iOS Lead Engineer at Swiggy, Unicorn Food Delivery Platform. I do have about 8 years of experience in mobile app development and have designed and architectured mobile apps. Experienced in building mobile apps that are used by millions of users. Personally, I love the way the swift language designed and a fan since I started using the Swift. In free time, will read articles about compilers and ARKit.


Date

27th July Saturday 09:00 AM to 01:30 PM

Workshop Location

Company Name: OLA

Full Address Address: ANI Technologies Pvt. Ltd. (Olacabs) Cherry Hills, 4th Floor, Embassy Golf Links Business Park, Domlur, Challaghatta, Bengaluru, Karnataka 560071

Google Maps Link