【问题标题】:how to make xcodebuild ignore errors如何让 xcodebuild 忽略错误
【发布时间】:2013-09-16 10:27:22
【问题描述】:

我想在 xcodebuild 中使用include-what-you-use。问题是当我这样做时:

$ export CC=/path/to/include-what-you-use
$ xcodebuild

从命令行,我收到错误并停止构建。我读过将 iwyu 与make 一起使用的常见方法是运行make -k,所以我想以类似的方式使用xcodebuild。是否可以?我在man xcodebuild 中一无所获。

【问题讨论】:

    标签: xcode makefile xcodebuild iwyu


    【解决方案1】:

    我找到了一个简单的解决方案。我已经围绕 include-what-you-use 编写了一个包装脚本:

    #!/bin/sh
    /path-to-iwyu/include-what-you-use "$@"
    exit 0
    

    这不是一个很好的解决方案,但它确实有效。如果你知道更好的方法,请告诉我。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-17
      • 2015-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 2014-03-13
      相关资源
      最近更新 更多