收到此错误:
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 仍然安装并且仍然在那个指定的路径。知道那条消息是什么意思吗?