简体   繁体   中英

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. 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. Is there a way for Xcode 7 to compile for Swift 1.2? If not, how do I get the old version of Xcode which does not use Swift 2?

Is Swift 2 app backward compatible with Swift 1 apps? Can Swift 1.2 app run on iOS 9?

Are most developers using the Swift 2 now or not?

In Xcode start with 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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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