简体   繁体   English

将 Swift 1.1/1.2 项目从 Xcode 6 升级到 Xcode 7 上的 Swift 2 项目

[英]Upgrading a Swift 1.1/1.2 project from Xcode 6 to Swift 2 project on Xcode 7

I have a project that I've been working on with my friend on Swift 1.1/1.2.我有一个项目,我一直在和我的朋友在 Swift 1.1/1.2 上工作。 Unfortunately, when I upgraded my Xcode to the latest version, I noticed that the app will no longer compile and there are lots of errors.不幸的是,当我将我的 Xcode 升级到最新版本时,我注意到该应用程序将不再编译并且存在很多错误。 Is there a way for Xcode 7 to compile for Swift 1.2? Xcode 7 有没有办法为 Swift 1.2 编译? If not, how do I get the old version of Xcode which does not use Swift 2?如果没有,我如何获得不使用 Swift 2 的旧版本 Xcode?

Is Swift 2 app backward compatible with Swift 1 apps? Swift 2 应用程序向后兼容 Swift 1 应用程序吗? Can Swift 1.2 app run on iOS 9? Swift 1.2 应用程序可以在 iOS 9 上运行吗?

Are most developers using the Swift 2 now or not?大多数开发人员现在是否在使用 Swift 2?

In Xcode start with Edit->Convert->To Latest Swift Syntax...在 Xcode 中,从Edit->Convert->To Latest Swift Syntax ...

You may still have errors that you will have to resolve manually.您可能仍然有必须手动解决的错误。 Read the Xcode Release Notes to see what changed in Swift 2.阅读 Xcode 发行说明以了解 Swift 2 中的更改。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM