How to enable build timing in Xcode?

后端 未结 5 1778
失恋的感觉
失恋的感觉 2020-12-22 19:24

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.

5条回答
  •  独厮守ぢ
    2020-12-22 19:45

    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."

提交回复
热议问题