-
Website
http://oiledmachine.com/posts -
Original page
http://www.oiledmachine.com/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html -
Subscribe
All Comments -
Community
-
Top Commenters
-
nonoDream
1 comment · 1 points
-
Lakshmi Vyas
1 comment · 1 points
-
banoidas
1 comment · 1 points
-
calbot
1 comment · 1 points
-
uprise78
1 comment · 1 points
-
-
Popular Threads
** BUILD SUCCEEDED **
scan-build: Removing directory '/var/folders/aG/aGcWcE9zH+KjyJhECHmwhE+++TI/-Tmp-//scan-build-2009-02-23-1' because it contains no reports.
Any thoughts how to get it to produce more than nothing?
scan-build: Removing directory '/var/folders/x2/x2PXNw6pE7O8Zr7cBMzy1U+++TI/-Tmp-/scan-build-2009-04-10-1' because it contains no reports.
can someone give me an example of the type of errors clang finds? I am really surprised that it didn't find any in my project but I'd like to try to add explicitly errors to verify that it works
Otherwise, you can try introducing a bug into your application.
E.g. `NSNumber *number = [[NSNumber alloc] initWithInt:0];` and don't `release` it. That should introduce 2 bugs: a dead initialization, and a memory leak.
Moreover I did add some errors (in particular the exact one you suggested) and it didn't change the result. Nothing is reported and the directory is removed.
I also have to say that on toy projects it work it is just in my real project where it doesn't
Most of my source files are .mm that may be the problem?
This is a pain as I am using some C++ mixed with objective C
scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1
Found this here:http://forums.macrumors.com/showthread.php?t=737768
Nice article
I keep getting an error "MessageUI/MessageUI.h: No such file or directory".
It builds fine if I just do an 'xcodebuild' or build within xcode.
I have tried setting the basesdk for all to 2.2, and I have tried :
scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.2
scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator2.1
scan-build -k -V xcodebuild -configuration Debug
scan-build -k -V xcodebuild
Doing some searches it seems like it may have to do witht the fact that this is a 3.0 library ?
THIS WORKED:
scan-build -k -V xcodebuild -configuration Debug -sdk iphonesimulator3.0
I had same problem, i.e. got error like:
scan-build: Removing directory '/var/folders/x2/x2PXNw6pE7O8Zr7cBMzy1U+++TI/-Tmp-/scan-build-2009-04-10-1' because it contains no reports.
After investigating it, in my case, this was happening because of either one of two reasons:
Reason 1 - I had a compilation error in my code. When I fixed the compilation error then it worked.
Reason 2 - The scan-build analysed my code and I had no actual errors.
So in my case, while my code compiled and while I had memory leaks in my code, the analyser worked and I got the web page pop up with the results. Otherwise I got something like the error listed above in the terminal window.
-bash: scan-build: command not found