Build error with Xcode 6 and (possibly) cocoapods

北城以北 提交于 2019-12-10 02:58:58

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/25770938/build-error-with-xcode-6-and-possibly-cocoapods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!