【问题标题】:iOS SDK (xcodebuild): Clang error cannot specify -o when generating multiple output filesiOS SDK (xcodebuild):生成多个输出文件时,Clang 错误无法指定 -o
【发布时间】:2012-01-30 10:57:43
【问题描述】:

我从xcodebuild(iOS 5.0 SDK - Apple LLVM 3.0)随机收到以下错误:

clang: error: cannot specify -o when generating multiple output files
Verify exit code of build task 'CompileC SomeViewController.m'
Build task failed without generating error messages.

在下一次尝试时它工作正常,然后随机错误再次发生。 我在持续集成系统上使用xcodebuild,所以每次发生这种情况时,构建都会变红:(

有什么想法吗?

【问题讨论】:

  • 您是否每次都在您的持续集成系统上进行干净的构建?发生这种情况时,您能否在日志中包含更多输出?
  • 是的,每次构建都干净。没有更多与此错误有关的输出。 :(
  • 这将有助于查看构建系统正在运行的编译命令,以找出额外的 -o 来自何处。这就是我正在寻找的输出。

标签: ios xcode llvm clang xcodebuild


【解决方案1】:

使用 LLVM 3.1 编译器的 Xcode 4.3.1 更新为我解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多