[英]Clang Static Analyzer can't start. Why?
收到此錯誤:
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,則可以通過菜單命令Build和Analyze運行Clang。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.