How to solve linker command failed with exit code 1 (use -v to see invocation)

不打扰是莪最后的温柔 提交于 2019-12-25 06:48:08

问题


i am getting this error when i am performing archive for my app. linker command failed with exit code 1 (use -v to see invocation) can any one help me to solve this.

Thanks


回答1:


So many different problems for the same error message.

1) if you had two same constants in different classes then also this issue happens.

2) if you have accidently imported a .m file instead of .h file in an implementation file.

3) This error can also be occurred if you have imported two different versions of same library ,in this case just remove the older version and keep only one version.

4) Adding the "other linker flags" in "Project" and not in "Targets". So, you move it to "Targets", it shouldn't be in "Project".

5) Check it out in project->target->build settings-> search enable bitcode->set NO in DEBUG

check out this .. if it's OK then once do like following.

Menu > Product > Clean ... then Run the project

Hope it helps you.. :)



来源:https://stackoverflow.com/questions/37873206/how-to-solve-linker-command-failed-with-exit-code-1-use-v-to-see-invocation

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