OCLint无法发现预编译的工作空间/项目标头

时间:2015-12-07 17:06:42

标签: xcode dependencies xcode7.1 pch oclint

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

我在OXS 10.11.1下运行XCode 7.1.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     cd /Users /.../Dev/Applications/[Project]     export LANG = en_US.US-ASCII     出口

PATH =“/应用/ Xcode.app /内容/开发商/平台/ iPhoneOS.platform /开发人员的/ usr / bin中:/Applications/Xcode.app/Contents/Developer/usr/bin:/用户/ ... /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 /本地/ 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失败)*

1 个答案:

答案 0 :(得分:2)

<强>更新 我能够通过发出以下命令来解决这个问题:

xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme