【问题标题】:Clang Static Analyzer can't start. Why?Clang 静态分析器无法启动。为什么?
【发布时间】:2009-09-03 13:48:50
【问题描述】:

收到此错误:

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

【问题讨论】:

    标签: iphone xcode clang


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-24
      • 2016-10-07
      • 2020-10-28
      • 2012-08-11
      • 2016-11-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多