0

I keep getting this error: clang: error: linker command failed with exit code 1 (use -v to see invocation)... when I'm compiling my game. I'm am using Cocos2d. Can anyone help?

3 Answers 3

2

Check the build log in Xcode (View -> Navigator -> Log Navigator). There's got to be more errors/warnings than "exit code 1" which just says the compiler/linker process was aborted due to an error. For example:

enter image description here

You can select all (Cmd+A) and copy (Cmd+C) the entire log as text if you need to post it here.

Sign up to request clarification or add additional context in comments.

Comments

0

Are you by any change following this guide?

http://www.learn-cocos2d.com/2012/04/enabling-arc-cocos2d-project-howto-stepbystep-tutorialguide/

If so, I had the same error because I had forgotten to remove the libs folder

Step 6. Delete the libs group in Xcode. Make sure to select Remove References in the confirmation dialog because you’ll still be needing the files later on, so don’t trash them.

Comments

0

Try using the xcworkspace to build instead of the xcproject. This works for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.