Xcode 5 - clang: error: linker command failed with exit code 1 (use -v to see invocation)

13,415

Solution 1

Please check https://testflightapp.com/sdk/ios/doc/

A library was not found, that testflight needs.

Include that framework (lib) and you are done.

Solution 2

Xcode has a bug in which it will double-escape quotes in a path. Note how the error on the screen you captured has ' \" ' and such in it. These are in error. Correct it so it looks like a path, instead.

I note also that it appears that your project path has spaces in it. While technically allowed, this is never a good idea. I'd suggest correcting that if you can.

Finally, notice that Xcode has included an absolute path that refers to your user directory. This will work for now, but not if you move the project. It's far better to make the path relative - search for this term if you're not familiar - to the root of your source code using the $SRCROOT variable. Then it is portable.

Share:
13,415
sahil dhiman
Author by

sahil dhiman

Updated on September 16, 2022

Comments

  • sahil dhiman
    sahil dhiman over 1 year

    I am facing a linker error when running my source code, I have attached a screenshot also. I am new in iOS development and so I am not able to get the error. Any help would be much appreciated.enter image description here

    • tooluser
      tooluser over 10 years
      Don't include screen shots. They're pictures of words. Include the words. We're programmers.