简体   繁体   English

Xcode 6和(可能)cocoapods生成错误

[英]Build error with Xcode 6 and (possibly) cocoapods

I'm getting the following static analyzer error when building my iOS project that is using cocoapods with the latest Xcode 6 GM release. 使用最新的Xcode 6 GM版本使用cocoapods构建我的iOS项目时,出现以下静态分析器错误。

error: error reading 'pic'
error: no analyzer checkers are associated with '-mrelocation-model'
2 errors generated.
Command /Applications/Xcode6-Beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I can disable the static analyzer, but obviously I don't want to do that. 我可以禁用静态分析器,但是显然我不想这样做。 Does anyone know how to fix this ( or a workaround ) and what exactly is causing this error? 有谁知道如何解决此问题(或解决方法),以及到底是什么导致了此错误?

It appears to be a known issue with a fix already in the queue for the next version of Cocoapods. 下一版本的Cocoapods队列中似乎已存在一个修复的已知问题。 Check out the bug report for more info. 查看错误报告以获取更多信息。

Supposedly you can work around this in the meantime by re-enabling warnings (eg remove inhibit_all_warnings from your podspec). 据说可以通过重新启用警告(例如,删除解决此其间inhibit_all_warnings从podspec)。

Alternatively, and what turned out to be the real problem for me, was that I had a deprecated flag set on a couple of the files. 另外,对我来说真正的问题是,我在几个文件上设置了已弃用的标志。 I removed these flags and the build succeeded. 我删除了这些标志,构建成功。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM