139

I have build errors in my Xcode project (Objective-C), and I no longer "stumble upon" the build command string nor the build output logs. This is Xcode 6.3.1.

All I can inspect is a left-side panel listing errors/warnings.

I want the build command and build console output to compare between two projects; there's a platform-specific issue present in one but not the other; my intuition says that the build settings are different between the two and that seeing the output would be the easiest way to identify the diff.

How do I get to see the build command string, and, the build output logs in this xcode?

1 Answer 1

244

Use the Xcode report navigator.

To show the report navigator, either (1) click the rightmost button in the navigator bar at the top of the navigator area, which is on the left side of the workspace window, (2) select View > Navigators > Reports from the menu bar at the top of the screen, or (3) press 9.

The report navigator shows a list of recent builds. Select one to see the details of the build in the editor area, which is in the center of the workspace window.

At the top of the editor area, make sure "All" and "All Messages" are both selected. Then click the "Export…" button at the top-right of the editor area to export a text file containing all the messages and build commands.

If you just want to see the messages and build commands for a specific build step, then select that step and click the small button on the right with a series of horizontal lines.

Xcode show build commands

The picture below is from the original answer.

Xcode show build commands

Sign up to request clarification or add additional context in comments.

13 Comments

What about the build command itself, can we retrieve it somewhere?
And how can be check if ran from terminal?
@MarkSzymczyk I think he means Xcode actually execute xcodebuild and commands like such. Can we see the commands Xcode executed?
Yeah, I would really like to be able to actually see the xcodebuild arguments passed when I kick off various builds. Currently in hell trying to figure out why XCode doesn't work but CI does for a particular build...
@lostintranslation I don't think Xcode 12.4 (12D4e) runs xcodebuild commands. I think it uses the Swift compiler (via the commands swift or swiftc) and other command-line tools, such as actool and clang. It uses absolute paths when invoking command-line tools, eg, /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc ….
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.