在Xcode 8中使用Swift 2.2? [英] Use Swift 2.2 in Xcode 8?

查看:79
本文介绍了在Xcode 8中使用Swift 2.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Xcode 8中使用Swift 2.2?

Is it possible to use Swift 2.2 in Xcode 8?

摘自Xcode 8发行说明:

From Xcode 8 release notes:

" Xcode 8支持切换工具链,例如swift.org中的工具链, 无需重新启动Xcode. (23135507)"

"Xcode 8 supports switching toolchains, such as those from swift.org, without relaunching Xcode. (23135507)"

我一直试图在swift.org网站上找到swift 2.2工具链,但找不到.在将Xcode 8配置为与Swift 2.2配合使用方面取得了任何成功

I have been trying to find swift 2.2 toolchain on swift.org website but couldn't. Have any one success in configuring Xcode 8 to work with swift 2.2

推荐答案

在XCode8中不能使用Swift2.2,在XCode3中也不能使用Swift2.3或Swift3.

It is not possible to use Swift2.2 in XCode8, and it is also not possible to use Swift2.3 or Swift3 in XCode3.

我找到的最佳解决方案是创建一个可同时在iOS 9和Xcode 7上编译的项目文件和iOS 10(Xcode 8),并且将支持Swift2.2和Swift2.3(非常相似).

The best solution i found is to create a single project file that will compile for both iOS 9 (Xcode 7) and iOS 10 (Xcode 8), and that will support Swift2.2 and Swift2.3 (very similar).

这篇关于在Xcode 8中使用Swift 2.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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