ERROR swiftc失败,退出代码为1 [英] ERROR swiftc failed with exit code 1

查看:148
本文介绍了ERROR swiftc失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将旧swift项目的语法转换为新的一个,根据StackOverflow上的一些建议我尝试将其转换为编辑>转换>转到最新语法,但是我开始得到新错误如下所示


Command / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / bin / swiftc
因退出代码1而失败



命令/ usr / bin / ditto失败,退出代码为1


来解决它,但它没有帮助。



提前致谢

解决方案

你试过干净吗? 清理构建文件夹



组合键是:



ALT + SHIFT + COMMAND + K


I was trying to convert syntax of old swift project to new one as per few suggestion on StackOverflow I tried converting it through Edit > Convert > To latest Syntax that did not work properly instead I started getting new errors shown as below

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

And

Command /usr/bin/ditto failed with exit code 1

I already tried these steps to resolve it but It did not help.

Thanks in advance

解决方案

Have you tried to do clean with Clean build folder?

The combination keys is:

ALT + SHIFT + COMMAND + K

这篇关于ERROR swiftc失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆