错误"swiftc失败,退出代码为1".转换为最新语法时 [英] ERROR "swiftc failed with exit code 1" when converting to latest syntax

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

问题描述

我试图按照Stack Overflow上的一些建议将旧Swift项目的语法转换为新语法,我尝试通过 Edit> Convert> To new Syntax 将其转换,但是我无法正常工作出现如下所示的新错误

I was trying to convert syntax of old Swift project to new one as per few suggestion on Stack Overflow 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 失败,退出代码为1

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

还有

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

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

我尝试了 Xcode 6.0. 1命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 ,但这是另一种情况.

I tried Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1, but it's a different situation.

推荐答案

您是否尝试过使用清理构建文件夹进行清理?

Have you tried to do clean with Clean build folder?

组合键是:

ALT + SHIFT + COMMAND + K

ALT + SHIFT + COMMAND + K

这篇关于错误"swiftc失败,退出代码为1".转换为最新语法时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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