Can I write apps in Swift 1 (for iOS 7 and 8) using Xcode 7?

Can I write apps in Swift 1 (for iOS 7 and 8) using Xcode 7? Or compile Swift 2 on iOS 7-9?

+4
source share
2 answers

There will be errors if you try to run swift 1 in xcode 7, and yes, swift 2 will work on iOS 7-9

+1
source

No, you can’t.

Each version of Xcode includes only one version of the Swift compiler. Using the new version of Xcode will force you to accept the new Swift syntax.
An automatic converter is available under Edit -> Convert -> To Latest Swift Syntax .

IOS version requirements are not affected by the use of Swift 2 (or Xcode 7). Applications created using Xcode 7 and written in Swift 2 can run on iOS 7 (the same conditions / limitations as before).

+5
source

All Articles