Clang static start analyzer with xcodebuild

I am trying to configure the clang parser on the hudson build server, and if I follow the tips in this blog post I got the following errors:

cc1obj: error: unrecognized command line option "-fdiagnostics-print-source-range-info"
cc1obj: warnings being treated as errors
cc1obj: warning: -Wuninitialized is not supported without -O
Command /usr/local/bin/libexec/ccc-analyzer failed with exit code 1
Command /usr/local/bin/libexec/ccc-analyzer failed with exit code 1

and if I pass the parameter RUN_CLANG_STATIC_ANALYZERto xcodebuild(without use scan-build), it generates some plist files to me, but I don’t know how to present these files to the user, because I expect HTML output.

Anyone succeed in doing this?

+5
source share
2 answers

Xcode 4 .xcconfig . myConfig.xcconfig RUN_CLANG_STATIC_ANALYZER = YES; , "xcodebuild -xcconfig myConfig.xcconfig"

+1

, , OCLint . , xcodebuild .

0

All Articles