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?
It's located in ~/Library/Developer/Xcode/DerivedData and contains a TON of folders. Once you go into one of you app-specific folders there is a sub folder called Logs/Test which contains a bunch of (seemingly randomly named) .
It should by located in: ~/Library/Developer/Xcode/DerivedData .
xcodebuild is a command-line tool that allows you to perform build, query, analyze, test, and archive operations on your Xcode projects and workspaces from the command line. It operates on one or more targets contained in your project, or a scheme contained in your project or workspace.
The xcactivitylog files are created by Xcode/ xcodebuild a few seconds after a build completes. The log is placed in the DerivedData/YourProjectName-UUID/Logs/Build directory. It is a binary file in the SLF format compressed with gzip. In the same directory, you will find a LogStoreManifest.
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.
The picture below is from the original answer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With