Xcode 10.0错误“命令/Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1". [英] Xcode 10.0 Error "Command /Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1"
本文介绍了Xcode 10.0错误“命令/Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在XCode 10.0版上编译代码时,我遇到了一个错误,使编译失败:
When I compile my code on XCode Version 10.0 I get this single error bringing the compilation to failure:
我将尽一切可能但无法解决错误
I will try all the possibility but can't solve the error
- 清理我的项目 alt + Shift + Command + K
- 删除〜/Library/Developer/Xcode/DerivedData
- Pod更新
推荐答案
如果您在错误上方查看,XCode会告诉您两次添加/声明了哪个类,请导航至该类并删除引用.建立起来,您就很好了.
If you look above the error, XCode will tell you which class is added/declared twice, navigate to it and remove the reference. Build and you're good to go.
这篇关于Xcode 10.0错误“命令/Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文