Iphone 叮当作响的静态分析器无法启动。为什么?
获取此错误:Iphone 叮当作响的静态分析器无法启动。为什么?,iphone,xcode,clang,Iphone,Xcode,Clang,获取此错误: 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 <
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仍然安装在指定的路径上。知道这条消息的意思吗?如果您有SnowLeopard和Xcode 3.2,您可以通过菜单命令运行Clang:Build and Analyze