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

╄→尐↘猪︶ㄣ 提交于 2020-01-13 17:33:11

问题


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.


回答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.




回答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.



来源:https://stackoverflow.com/questions/19954779/xcode-5-clang-error-linker-command-failed-with-exit-code-1-use-v-to-see-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!