What causes clang: error: unsupported option '--serialize-diagnostics' with xcode
===

I am trying to execute the clang analyser with an Xcode build. This worked on another project, but now I get the error described below. Has anyone seen this? 

MY COMMAND LINE:
/Users/builder/Tools/checker-267/scan-build -k -v -o scan_output xcodebuild -scheme MyScheme -configuration Release -sdk iphoneos CONFIGURATION_BUILD_DIR=build 'CODE_SIGN_IDENTITY=iPhone Distribution:'

I GET (THOUGH THIS WARNING ALSO APPEARED WITH A PREVIOUS PROJECT THAT COMPLETED LINTING SUCCESSFULLY):

Warning:  Couldn't discover the 'ccc-analyzer' compiler's built-in search paths and preprocessor definitions for language dialect 'objective-c'.


AND THEN GET THE unsupported option '--serialize-diagnostics' ERROR WHICH SEEMS TO BE THE PROBLEM:

Details:  Unable to get message category info for tool '/Users/builder/Tools/checker-267/libexec/ccc-analyzer'.
Reason: Can't exec "clang": No such file or directory at /Users/builder/Tools/checker-267/libexec/ccc-analyzer line 428.


Object:   <XCCompilerSpecificationClang: 0x40130c340>
Method:   -messageCategoryInfoForExecutablePath:
Thread:   <NSThread: 0x40143f5e0>{name = (null), num = 5}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
clang: error: unsupported option '--serialize-diagnostics'
clang: error: no such file or directory: '/Users/builder/Library/Developer/Xcode/DerivedData/Civitas-cjaysrhpylwnfoaagvkzrnpvmkhq/Build/Intermediates/HAClient.build/Release-iphoneos/HAClient.build/Objects-normal/armv7/HAClient.dia'
Command /Users/builder/Tools/checker-267/libexec/ccc-analyzer failed with exit code 1
