在 xcode 8 中从 swift 2.2 迁移到 swift 3.0 [英] Migrate from swift 2.2 to swift 3.0 in xcode 8

查看:49
本文介绍了在 xcode 8 中从 swift 2.2 迁移到 swift 3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Xcode 8.0 上从 swift 2.2 迁移到 swift 3.0.

How to migrate from swift 2.2 to swift 3.0 on Xcode 8.0.

我是否还需要更新所有第 3 方库?

Do i need to update all the 3rd party libraries also ?

请帮忙!!!

推荐答案

遗憾的是 Swift 2.2 不适用于 Xcode 8.但 Apple 做出了很好的举动,仍然支持 Swift 2.3,它与 2.2 基本几乎相同.

Swift 2.2 unfortunately doesn't work with Xcode 8. But Apple made a good move still supporting Swift 2.3, which is basically almost the same as 2.2.

问题出在 3rd 方库上,它必须与您的项目使用相同的 Swift 版本.

The problem is with 3rd party libraries, which must be in the same version of Swift as your project.

因此,如果您使用的是 Swift 2.3,则不能使用以 Swift 3.0 编写的库.

So, if you're using Swift 2.3, you can't use libraries, that are written in Swift 3.0.

这篇关于在 xcode 8 中从 swift 2.2 迁移到 swift 3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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