title: Clang with Xcode 4 error: invalide option nodistribute
body: <p>I have been trying to get clang's analysis tool working, but I am not sure how to overcome a particular error when I run it.  I have installed X-Code 4.0 and iOS 5 the output I get is:</p>
  
  <hr>
  
  <h2>Generating class dependency graph.</h2>
  
  <p>Launching /Users//Desktop/HomeWork2/tools/AnalysisTool.app/Contents/Resources/llvm/utils/scan-build with arguments: (</p>
  
  <pre><code>"-o",
  "/Users/&lt;homedir&gt;/Development/myApp/Static analysis/results",
  "-v",
  "--status-bugs",
  "-checker-cfref",
  "-warn-dead-stores",
  "-warn-objc-methodsigs",
  "-warn-objc-missing-dealloc",
  "-warn-objc-unused-ivars",
  "-analysistool-checker-access-control",
  "-analysistool-checker-coersions",
  "-analysistool-checker-cyclomatic-complexity",
  "-analysistool-checker-conditional-logical-complexity",
  "-analysistool-checker-conditional-nesting-depth",
  "-analysistool-checker-loop-nesting-depth",
  "-analysistool-checker-dealloc-safety",
  "-analysistool-checker-declaration-conventions",
  "-analysistool-checker-discouraged-method-calls",
  "-analysistool-checker-error-handling",
  "-analysistool-checker-extra-parentheses",
  "-analysistool-checker-finalize",
  "-analysistool-checker-format-strings",
  "-analysistool-checker-kvo",
  "-analysistool-checker-memory-management",
  "-analysistool-checker-naming-conventions",
  "-analysistool-checker-shadow",
  "-analysistool-checker-unused-ivars",
  "--use-cc=/Developer/usr/bin/llvm-gcc-4.2",
  "--use-c++=/Developer/usr/bin/llvm-g++-4.2",
  "-generate-class-dependency-graph",
  xcodebuild,
  "CONFIGURATION_BUILD_DIR=/Users/&lt;homedir&gt;/Development/myApp/Static analysis/build",
  "CONFIGURATION_TEMP_DIR=/Users/&lt;homedir&gt;/Development/myApp/Static analysis/build",
  "-configuration",
  Debug,
  clean,
  build
  </code></pre>
  
  <p>).</p>
  
  <p>scan-build: Emitting reports for this run to '/Users//Development/AMMO_SVN_Projects/MobXpo/branches/MobXpo_v12/Static analysis/results/2011-06-30-8'.</p>
  
  <p>scan-build: 'clang-cc' executable not found in '/Users//Desktop/SWEN_646/HW2/tools/AnalysisTool.app/Contents/Resources/llvm/utils/libexec'.</p>
  
  <p>scan-build: Using 'clang-cc' from path.</p>
  
  <p>xcodebuild: error: invalid option '-nodistribute'</p>
  
  <p>Usage: xcodebuild [-project ] [[-target ]...|-alltargets] [-configuration ] [-arch ]... [-sdk [|]] [=]... []...
         xcodebuild -workspace  -scheme  [-configuration ] [-arch ]... [-sdk [|]] [=]... []...
         xcodebuild -version [-sdk [|] [] ]
         xcodebuild -list [[-project ]|[-workspace ]]
         xcodebuild -showsdks</p>
  
  <p>Options:</p>
  
  <pre><code>-usage                print full usage
  -verbose              provide additional status output
  -project NAME         build the project NAME
  -target NAME          build the target NAME
  -alltargets           build all targets
  -workspace NAME       build the workspace NAME
  -scheme NAME          build the scheme NAME
  -configuration NAME   use the build configuration NAME for building each target
  -xcconfig PATH        apply the build settings defined in the file at PATH as overrides
  -arch ARCH            build each target for the architecture ARCH; this will override architectures defined in the project
  -sdk SDK              use SDK as the name or path of the base SDK when building the project
  -parallelizeTargets   build independent targets in parallel
  -jobs NUMBER          specify the maximum number of concurrent build operations
  -showsdks             display a compact list of the installed SDKs
  -list                 lists the targets and configurations in a project, or the schemes in a workspace
  -find BINARY          display the full path to BINARY in the provided SDK
  -version              display the version of Xcode; with -sdk will display info about one or all installed SDKs
  </code></pre>
  
  <hr>
  
  <p>I have researched the internet but I have found nothing to help my specific problem. I think what i need to do is edit the clang tool to not include the "nodistribute" option, but im not sure if there is another way or where to get the source code to do so. Thanks in advance for any help.</p>