简体   繁体   中英

Clang Static Analyzer can't start. Why?

Getting this error:

2009-09-03 12:44:02.307 xcodebuild[307:10b] warning: compiler 'com.apple.compilers.llvm.clang.1_0.analyzer' is based on missing compiler 'com.apple.compilers.llvm.clang.1_0.analyzer'

This happens when I execute this script from within xcode:

#!/bin/bash
result=$( osascript << END
tell application "Xcode"
 tell active project document
  set projectPath to path as string
 end tell 
end tell 
return projectPath
END
)

cd "$result"

/Developer/clang/scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.2.1

It worked all fine, but abruptly stopped working after restarting xcode. Clang is still installed and still at that specified path. Any idea what that message means?

如果您有SnowLeopard和Xcode 3.2,则可以通过菜单命令Build和Analyze运行Clang。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM