Reputation: 22309
Given that Swift version 2 breaks some of the apis - is it possible to select which version the compiler targets?
Upvotes: 5
Views: 1662
Reputation: 6495
It is not possible to select which version the compiler targets. If you want to use swift 1.2 then don't use xcode 7, stick to xcode 6.3
In case you want to use xcode 7, then you can migrate all your previous code to Swift 2 by going to Edit > Convert > To Latest Swift Syntax, it will help find many of the changes. However, you will still need to do a lot of manual editing.
I strongly recommend that you keep a backup of your project before migrating.
Upvotes: 5