[英]How do I keep using Swift 2.3, instead of 3.0, Xcode updated and can't build anymore
[英]How do I use Swift 2.3 to build my project instead of Swift 3 in Xcode 8?
我最近更新了Xcode
,因此无法构建我的应用程序。 我搜索了两个解决方案,发现需要安装工具链才能使用Swift 2.3
而不是Swift 3
。 要安装工具链,我需要使用Carthage
。
但是,我将CocoaPods
用于依赖项,因此现在无法更改。 所以我的问题是:
Carthage
情况下安装工具链吗? 如果可以,怎么办? 提前致谢。
编辑:
尝试设置“使用旧版Swift语言版本”。 改为“否”。 但是我的其他框架(即Alamofire
)开始显示以下错误:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
您的项目在Swift 2.2中,而不是Swift 2.3中。 转到转换菜单时,可以在Swift 2.3和Swift 3之间进行选择。选择Swift 2.3并运行转换。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.