通过SVN合并代码后报错 clang: error: linker command failed with exit code 1 (use -v to see invocation)
下面是网上的解决方法:
①build phases->compile sources看看.m文件是不是都添加了
②build setting->Other linker Flags改变属性为-ObjC
我试了试发现都不行,后来我就回退到我提交之前的版本,把别人提交的代码一部分一部分复制到我的代码上,终于发现问题了:我们两个分别创建了一个名字相同的类。也就是说因为这两个类名字相同,Xcode不能识别该使用哪个类才报错的。找到问题所在就好办了,不用我教了吧?

网友评论