Error "Ccc-analyzer could not be detected" when running scan-build

I am trying to find leaks in my chibi-ORM project using the scan-build tool, as suggested in other threads.

But when starting from the terminal:

/Users/mamcx/Downloads/checker-0.138/scan-build  -k -V xcodebuild

I get this:

009-01-13 10:33:18.296 xcodebuild[14025:4213] Warning:  Couldn't discover the 'ccc-analyzer' compiler built-in search paths and preprocessor definitions for language dialect 'objective-c'.  This may lead to indexing issues.
Compiler: /Users/mamcx/Downloads/checker-0.138/ccc-analyzer
Reason:   gcc-4.0: installation problem, cannot exec '/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1': No such file or directory

However, I can build and debug just fine from the Xcode Ide. Is this a problem with this tool or is something wrong on my part?

+3
source share
4 answers

the assembly fails because of the reason for signing the code, the fix for iphone applications would be to simply go to the project properties and install the “Base SDK” on “Simulator - iPhone OS 2.1” and not on “Device”

,

+2

, -sdk xcodebuild, :

scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.0

2.0 2.1, 2.2, 2.2.1 3.0, SDK.

+7

, , ( ), Clang, :

  • " SDK" "Simulator - iPhone OS x.xx"
  • Identity to - "Do not Code Sign"

, scan-build, :

scan-build xcodebuild -configuration Clang

(, , ).

( ): -)

, , :

xcodebuild -configuration Clang clean

scan-build , .

+1

, xcodebuild . , . Xcode , , .

, Debug, . CLang/LLVM scan-build xcodebuild -configuration Debug.

0

All Articles