使用Xcode 6和(可能)cocoapods构建错误 [英] Build error with Xcode 6 and (possibly) cocoapods

查看:178
本文介绍了使用Xcode 6和(可能)cocoapods构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建使用最新Xcode 6 GM版本的cocoapods的iOS项目时,我收到以下静态分析器错误。

I'm getting the following static analyzer error when building my iOS project that is using cocoapods with the latest Xcode 6 GM release.

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?

推荐答案

这似乎是一个已知问题,已经在下一版Cocoapods的队列中已经有了一个修复程序。有关详细信息,请查看错误报告

It appears to be a known issue with a fix already in the queue for the next version of Cocoapods. Check out the bug report for more info.

据说你可以通过重新启用警告来解决这个问题(例如从你的podspec中删除 inhibit_all_warnings ) 。

Supposedly you can work around this in the meantime by re-enabling warnings (e.g remove inhibit_all_warnings from your 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.

这篇关于使用Xcode 6和(可能)cocoapods构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆