OC系列教程之错误提示:clang: error: linker command failed with exit code 1 (use -v to see invocation)

入门ios不久,发现某天编译 的时候出现如下错误,将解决方案整理如下:

查了下这个算是常见问题,触发的原因可能有多种,需要找到当前问题的原因,进行有针对性解决~

嗯废话就到这里,首先讲下如何找到原因:

方法参考(https://blog.csdn.net/weixin_37569048/article/details/81128445)

点击错误----右键----选择Reveal in Log(注意打开console窗口,查看信息)

然后再console窗口就可以查看问题的根源了;


找到问题后如何解决?

参考链接(https://blog.csdn.net/u012847940/article/details/51333285?utm_source=blogxgwz2),该链接对可能的原因及解决办法总结的比较详细~

你可能感兴趣的:(OC系列教程之错误提示:clang: error: linker command failed with exit code 1 (use -v to see invocation))