Generate iPhone code using xcodebuild and run LLVM / Clang Static Analyzer

I followed the steps in Searching for memory leaks using LLVM / Clang Static Analyzer , but I was unable to start the static analyzer in my project.

When I try to run xcodebuild in my project (1. Open a 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 to run this tool in my code? - I'm testing a simulator. Thanks.

+6
memory-leaks iphone clang static-analysis
source share
5 answers

I am the author of the blog post that you link in your question. If the coding comments are not enough to point you in the right direction, you can wait a bit later, and I am updating my blog post with more information about starting xcodebuild for iPhone projects.

- Michael

-

Ok, I updated the post in a section called Using the iPhone . Hope this helps!

Search for memory leaks using the LLVM / Clang static analyzer

+1
source share

I have not used the tool in question, but the problem you see is the asced xcodebuild command. Make sure your target is a simulator, not a device (-target command line argument).

0
source share

It looks strange, but I switched the active configuration to Debug EVERYWHERE , but still got the same error (for example, Release is active). Xcode Version 3.1.3.

I was able to fix the problem immediately after deleting the Release configuration altogether from the active target.

alt text http://clip2net.com/clip/m13204/1247508906-clip-58kb.jpg

0
source share

It can be difficult to install basic sdk. I like this approach: alt text http://img.skitch.com/20091103-gjddxyf8hmyfmsfie1aux8uk1n.jpg

I would swear that I already installed sdk through the more traditional "Build" tab, but hey ... The approach of the "Build" tab let me down (who knows what I did wrong), but it worked great.

Good luck.

[Edit - I just visited the link posted in the Question - which repeats, but does not emphasize what I state here.]

0
source share

All Articles