April 20, 2016

How to show the duration of builds in Xcode

Xcode Toolbar showing build duration

Ever wondered how long your builds in Xcode are taking? Here’s a quick way to show the build duration in seconds inside Xcode after each build:

  1. In your terminal, type:
defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES
  1. Relaunch Xcode.
  2. Build your project to see the duration of each build!

If you’re looking for something with a bit more control over how the duration is displayed, you should check out Craig Edwards’ BuildMeUp Xcode Plugin.