Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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?

like image 950
immichs Avatar asked Sep 10 '14 16:09

immichs


1 Answers

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.

enter image description here

like image 125
Evan Grim Avatar answered Sep 21 '22 17:09

Evan Grim