Is there a way to do a Build and Analyze like in Xcode using xcodebuild? I'm using Xcode 3.2.2
With Xcode 5, you can simply do $ xcodebuild [OTHER_OPTIONS] analyze
.
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/
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