Getting HTML output from Xcode's built-in static analysis

When I use the Build and Analyze option in Xcode, I see a very useful visual output integrated into the IDE, showing code paths, memory leaks, dead storage, etc.

Xcode has an assembly parameter that allows you to run a static analyzer (clang) as part of each assembly. But when I do this, the output consists of simple plist files in the build folder.

Is there a way to generate rendered HTML output from these plist files?

+4
source share
1 answer

I don’t know if this is something new on Xcode 6, but if you run from the command line xcodebuild CLANG_ANALYZER_OTHER_FLAGS= CLANG_ANALYZER_OUTPUT=plist-html CLANG_ANALYZER_OUTPUT_DIR=$HOME/tmp RUN_CLANG_STATIC_ANALYZER=YES .

+3
source

All Articles