Mr. Boy
Mr. Boy

Reputation: 63728

Running xcodebuild on command line, where to view logs?

I want to view the log when building an xcode (4.5) project from the command-line, since the output in the command-line window itself is too long and messy. Is there a standard place the logs would go, I can't seem to find them?

Upvotes: 9

Views: 12113

Answers (2)

Lou Franco
Lou Franco

Reputation: 89172

There are logs in ~/Library/Developer/Xcode/DerivedData -- you'll have to figure out which sub folder is for your build, but in there is Logs/Build/UUID.xcactivitylog

If you rename that file to a .zip and unzip, there's a text file log in there of the build.

Upvotes: 10

Analog File
Analog File

Reputation: 5316

Like all command line tools, output goes to standard output and error goes to standard error. By default this is your command line terminal. Use piping and/or redirection if you want them somewhere else. Check your command line interpreter documentation for more info (probably you are using bash, so check man bash).

Upvotes: -3

Related Questions