出现此错误:
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仍然安装并仍然在指定的路径上。知道那个消息意味着什么吗?
答案 0 :(得分:0)
如果你有SnowLeopard和Xcode 3.2,你可以通过菜单命令运行Clang:Build and Analyze。