【问题标题】:OCLint fails to discover pre-compiled workspace/project headersOCLint 无法发现预编译的工作区/项目标头
【发布时间】:2016-03-12 09:16:40
【问题描述】:

我在尝试构建我的 OCLint 聚合时收到以下错误。 我们在工作区中使用预编译的头文件,尽管它们被引用 由于某种原因,在主目标和 OCLint 聚合中完全相同, OCLint 聚合无法发现 pch。 这就是找不到“CocoaLumberjack/CocoaLumberjack.h”依赖的原因。

我在 OXS 10.11.1 下运行 XCode 7.1.1 非常感谢任何建议。

*=== 构建目标 [Target] OF PROJECT [Project] WITH CONFIGURATION Debug === 检查依赖项 ProcessPCH /var/folders/nv/y04q5c5s30567pk7w8lts7zr0000gn/C/com.apple.DeveloperTools/7.1.1-7B1005/Xcode/7.1.1-7B1005/Xcode/SharedPrecompiledHeaders/[Project]-Prefix-canqfypuftycqgglhiqfotrflhkv/[Project]-Prefix. pch.pch [Project]/[Project]-Prefix.pch normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/.../Dev/Applications/[项目] 导出 LANG=en_US.US-ASCII 出口

PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/... /StaticCodeAnalysis/OBJ-C/OCLint/oclint-0.8.1/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains /XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer /usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin :/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local /bin:/usr/bin:/bin:/usr/sbin:/sbin"

: : /Users/.../Dev/Applications/[Project]/[Project]/[Project]-Prefix.pch:16:9:致命错误:找不到“CocoaLumberjack/CocoaLumberjack.h”文件 [#import]

    ^

产生 1 个错误。 ** 构建失败 ** [项目]

以下构建命令失败: ProcessPCH /var/folders/nv/y04q5c5s30567pk7w8lts7zr0000gn/C/com.apple.DeveloperTools/7.1.1-7B1005/Xcode/7.1.1-7B1005/Xcode/SharedPrecompiledHeaders/[Project]-Prefix-canqfypuftycqgglhiqfotrflhkv/[Project]-Prefix. pch.pch [Project]/[Project]-Prefix.pch normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 次失败)*

【问题讨论】:

    标签: xcode dependencies xcode7.1 pch oclint


    【解决方案1】:

    更新: 我可以通过发出以下命令来解决这个问题:

    xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme
    

    【讨论】:

      猜你喜欢
      • 2018-01-28
      • 2019-02-27
      • 2022-12-12
      • 2013-07-31
      • 2018-11-21
      • 2018-05-27
      • 1970-01-01
      • 2010-12-05
      • 2021-08-06
      相关资源
      最近更新 更多