Xcode 6.3和Swift 1.1 [英] Xcode 6.3 and Swift 1.1

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

问题描述

有什么方法可以让Xcode 6.3使用1.1版编译Swift?我今天升级到Xcode 6.3,期望得到很好的错误修正,并且能够将1.1代码转换为1.2.不幸的是,找不到彩虹和独角兽.

Is there any way to have Xcode 6.3 compile Swift using version 1.1? I upgraded to Xcode 6.3 today, expecting great bugfixes and being able to convert 1.1 code to 1.2. Unfortunately, rainbows and unicorns are nowhere to be found.

现在我的项目已损坏,我只想恢复使用Swift 1.1进行编译.

Now I have a broken project and I want to just revert back to compiling using Swift 1.1.

Eclipse将允许您针对另一版本的Java进行编译.在Xcode和Swift中有可能吗?

Eclipse would allow you to compile against another version of Java. Is this possible in Xcode and Swift?

推荐答案

不幸的是,没有.除了此生态系统中的较旧的iOS版本外,无法使用几乎所有新版本的Xcode来针对较旧版本进行编译.就是说,我相信这是故意的.保持最新消息是个好主意.

Unfortunately, no. There's no way to compile against an older version using a newer version of Xcode of pretty much anything except for older iOS versions in this ecosystem. That said, I believe this is on purpose. It's a good idea to keep up to date with the latest versions of everything.

但是,一种可能的解决方案是转到 https://developer.apple.com/downloads/index.action 并下载Xcode 6.2并删除Xcode 6.3.这应该安装Swift 1.1的工具,并删除1.2的工具.但同样,最好修改代码以反映Swift 1.2中的更改.

One possible solution however is to go to https://developer.apple.com/downloads/index.action and download Xcode 6.2 and remove Xcode 6.3. This should install the tools for Swift 1.1 and remove the tools for 1.2. But again, it's a good idea to just revise your code to reflect the changes in Swift 1.2.

这篇关于Xcode 6.3和Swift 1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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