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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With