Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static Analyzer error with iOS8 SDK

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.

like image 213
arango_86 Avatar asked Aug 25 '14 06:08

arango_86


2 Answers

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

like image 105
ehrpaulhardt Avatar answered Oct 29 '22 16:10

ehrpaulhardt


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

like image 2
Paresh Vasoya Avatar answered Oct 29 '22 16:10

Paresh Vasoya