Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable build timing in Xcode?

I'd like to know how long my project's builds take, for example by displaying it in the build pane. Is this option available somewhere in Xcode?

Thanks.

like image 345
Guillaume Avatar asked Jun 22 '09 15:06

Guillaume


People also ask

How do I change my build settings in Xcode?

Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.

How do I disable parallel build in Xcode?

By reducing the size of your targets, you will obtain a better parallelization. When opening your project in Xcode 10, build parallelization should already be enabled. To check or change this option, open your scheme editor, select “Build” in the sidebar and make sure “Parallelize Build” is checked at the top.


1 Answers

Type this in the terminal:

defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES 

Duration appears in the activity viewer after a build, alongside the "Succeeded" message.

If you are running the app, the status will be replaced by the running status before you can see the duration.

This replaces the entry that was used in older versions of Xcode:

defaults write com.apple.Xcode ShowBuildOperationDuration YES

Xcode may need to be closed before you enter this command. Durations should appear at the bottom left of the project window.

Comment from an Xcode developer: "As with all undocumented user defaults, this is unsupported, assumed (but not guaranteed) accurate, and not assured to be effective in future versions."

like image 81
Guillaume Avatar answered Sep 22 '22 08:09

Guillaume