Recently I updated to Xcode 6 beta 6 with iOS 8 SDK. And while running static analyser I jumped into a problem with the following errors.
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
Any Idea what is these errors and how to fix it. Thanks.
It´s a issue with the clang static analyzer.
Add to your existing analyzer entry under "Target" -> "Build Phases" -> "Compiler Flags" the suffix -Xanalyzer deadcode
.
Complete entry should read as follows:-w -Xanalyzer -analyzer-disable-checker -Xanalyzer deadcode
I have solve this problem recently you can solve using go to Xcode > Preferences > Location and remove all derived data in derived data folder and then clean and analyze
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