views:

4021

answers:

5

I followed the steps here but i'm unable to run static analyzer on my project:

Finding memory leaks with the LLVM/Clang Static Analyzer

When i try to run xcodebuild on my project (1. Open Terminal, 2. Go to Project Directly, 3. > xcodebuild), i get this error:

=== BUILDING NATIVE TARGET XProject OF PROJECT XProject WITH THE DEFAULT CONFIGURATION (Release) ===

Checking Dependencies... CodeSign error: no certificate found in keychain for code signing identity 'iPhone Developer'

** BUILD FAILED **

How can i run this tool on my code - i'm testing with simulator. Thanks.

A: 

I haven't used the tool in question but the issue you're seeing appears to be a bothced xcodebuild command. Ensure that your target is the Simulator and not the device (-target command line argument).

codelogic
Can you please elaborate (explain a little, target is set to simulator and i'm testing my application on simulator using xcode).
Mustafa
You need to pass the target to the xcodebuild command line. Open Terminal and type xcodebuild --help to see the available options.
codelogic
+1  A: 

Hello Mustafa,

I'm the author of the blog post that you reference in your question. If codelogic's comments are not enough to point you in the right direction you can wait until a bit later today and I will update the blog post with some more information about running xcodebuild against iPhone projects.

-- Michael

--

Alright, I've updated the post with a section titled iPhone Usage. Hope this helps!

Finding Memory Leaks With The LLVM/Clang Static Analyzer

Michael Fey
I just checked the post and its still the same. Detail on how to use xcodebuild against iPhone projects (with no certificate - testing on simulator) would be great. Thanks.
Mustafa
+3  A: 

Hi Mustafa, Your answer is here : http://www.oiledmachine.com/posts/2009/01/06/using-the-llvm-clang-static-analyzer-for-iphone-apps.html

Scooby
Thanks, will check this one out.
Mustafa
A: 
MikZ
A: 
JJ Rohrer