ios - 转换为最新语法时出现错误 "swiftc failed with exit code 1"

标签 ios objective-c swift xcode

根据 Stack Overflow 上的一些建议,我试图将旧 Swift 项目的语法转换为新项目我尝试通过 Edit > Convert > To latest Syntax 将其转换,但我开始使用它并不能正常工作得到如下所示的新错误

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

还有

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

enter image description here

我试过 Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 ,但情况不同。

最佳答案

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

组合键是:

ALT + SHIFT + COMMAND + K

关于ios - 转换为最新语法时出现错误 "swiftc failed with exit code 1",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38496582/

相关文章:

ios - swift/iOS : AVAudioPlayer does not play sound in NSData format

php - 使用 NSData 将日期从 xCode 传递到 PHP

objective-c - 将两个 iOS 应用程序合二为一

ios - 使用方法调配立即更改所有 UIViewController 实例上 iOS13 上的 modalPresentationStyle

json - 需要帮助使用 Alamofire 使用 Swift 解析 JSON

ios - 如何快速过滤 UICollectionView 中的单个类别?

ios - 如何在 iOS 的多 TableView 中使用 didSelctRowAtIndexPath?

ios - 如何在 UIView swift 中重新加载特定的 subview ?

ios - 解析 "valid signing identity not found in xcode"无导入导出

ios - 合并中的音频不起作用