[cfe-dev] Using scan-build with iPhone XCode project

Francois Proulx francois.proulx at backelite.com
Tue Feb 10 14:42:52 PST 2009


Hi,
I've got an iPhone XCode project which has a direct dependency over a second
XCode project producing a static library. This static library is linked to
my project. I've added an import to my main .pch (precompiled header) file
so I've got all the import for my library (i.e : #import "BkCommon.h").

All this builds perfectly well in XCode (I've had to add a relative path in
the "User header search path" to the directory where the second project
files are located). Here's the problem, when I run "scan-build xcodebuild",
it builds, but it gives me a bunch of "analyzer issues" (I don't quite
remember the term used). Looking at the STDERR output shows that all the
error are related to the #import line in my .pch. It says that it can't find
the file "BkCommon.h". To me, it's as if scan-build is ignoring the "User
header search path"...

Any help on the matter would be greatly appreciated.

Thanks
Francois
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090210/ea9f2dea/attachment.html>


More information about the cfe-dev mailing list