0

收到此错误:

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'

当我从 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

一切正常,但在重新启动 xcode 后突然停止工作。Clang 仍然安装并且仍然在那个指定的路径。知道那条消息是什么意思吗?

4

1 回答 1

0

如果你有 SnowLeopard 和 Xcode 3.2,你可以通过菜单命令运行 C​​lang:构建和分析。

于 2009-09-03T21:02:21.240 回答