Isaac Wasserman
Isaac Wasserman

Reputation: 1541

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 will compiled Swift 2 run on iOS 7-9?

Upvotes: 4

Views: 1275

Answers (2)

Tim Bodeit
Tim Bodeit

Reputation: 9693

No, you can not.

Each Version of Xcode includes only one version of the Swift Compiler. Using a newer Xcode Version will force you to adopt the new Swift Syntax.
There is an automatic converter available under Edit -> Convert -> To Latest Swift Syntax.

The iOS Version requirements are not affected by the use of Swift 2 (or Xcode 7). Apps built with Xcode 7 and written in Swift 2 can run on iOS 7 (same conditions/restrictions as before).

Upvotes: 5

yzet00
yzet00

Reputation: 511

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

Upvotes: 1

Related Questions