ios 命令 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 失败,退出代码为 1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19068715/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 01:49:37  来源:igfitidea点击:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

iphoneiosuisegmentedcontrolxcode4.6.3

提问by Pradeep Mittal

I have some problem with my project. Can someone who's good in xcodehelp me up with that linker error on skype or teamviewer? I didn't made that code but it was working earlier but now it shows some linker error

我的项目有问题。有人可以xcode帮助我解决Skype或teamviewer上的链接器错误吗?我没有制作那个代码,但它之前可以工作,但现在它显示了一些链接器错误

Command

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

命令

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 失败,退出代码为 1

Thanks for any help in advance.

提前感谢您的任何帮助。

回答by Pradeep Mittal

1 >I was using scrollview delegate methods in my project when i didn't set the UIScrollViewDelegate in my header file.

1 >当我没有在头文件中设置 UIScrollViewDelegate 时,我在我的项目中使用了滚动视图委托方法。

2 >The linker error was generated because I deleted the whole .xib file once but when I added a new .xib file and tried to link it that aroused this error.

2 > 生成链接器错误是因为我删除了整个 .xib 文件一次,但是当我添加新的 .xib 文件并尝试链接它时,引发了此错误。

To fix this error I had to make a new project and copied all my code in that new project.There may be an easier way to do this but this is what I did to fix it.

为了修复这个错误,我必须创建一个新项目并在该新项目中复制我的所有代码。可能有更简单的方法来做到这一点,但这就是我修复它的方法。

回答by Michal Shatz

Cleaning 'Other Librarian Flags' of all content works

清除所有内容作品的“其他图书馆员标志”