Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build and Analyze using xcodebuild

Is there a way to do a Build and Analyze like in Xcode using xcodebuild? I'm using Xcode 3.2.2

like image 700
Andreas Järliden Avatar asked Jul 03 '10 07:07

Andreas Järliden


2 Answers

With Xcode 5, you can simply do $ xcodebuild [OTHER_OPTIONS] analyze.

like image 69
Kelan Avatar answered Oct 13 '22 00:10

Kelan


I do not think so, however you can download the Clang Static Analyzer separately, and use it on the command line, for example before your build. The "Build and Analyze" option uses exactly this project to perform the analysis. The output of the Clang analyzer consists in HTML files, which you can automatically store for later review.

http://clang-analyzer.llvm.org/

like image 31
Adrian Kosmaczewski Avatar answered Oct 12 '22 23:10

Adrian Kosmaczewski