Reputation: 311
I upgraded the Xcode's version to Xcode 8.0, the error that I'm getting is that it forces me to convert the syntax, before the update I'd 2.2 version, but now it requires the version 2.3 or 3.0, and when I try to convert with the Xcode converter, it breaks the entire project (too many errors, and the converter commits lot of mistakes).
Is there a way to use the 2.2 version without upgrading ?
Upvotes: 1
Views: 427
Reputation: 5747
If you already have upgraded to Xcode 8, it will always ask you to convert to either Swift2.3
or Swift3
@par above shown you how you can just keep compiling on Swift 2.3
using the Use Legacy Swift Language
and likes what others comments on your question, you will have to upgrade it sooner than later.
However, to answer your question of avoid the converting to Swift2.3
or Swift3
. The way I am using is download the old Xcode7.3.1
. You can look for the download here. Do not replace your Xcode8 but just maybe drag it onto desktop or another directory.
I have some project that depend on other libraries and also previous client project. Therefore I found that using Xcode7.3.1
to open such project is easier and more convenient.
Upvotes: 1
Reputation: 17724
With Xcode 8 you can upgrade to Swift 2.3 and very nearly everything will stay the same. Your project shouldn't break and your changes should be minimal.
You'll need to go into the target's build settings and set the option Use Legacy Swift Language Version
to Yes
, which will allow you to keep compiling Swift 2.3
Note that the Xcode parser will complain while indexing about various things that aren't Swift 3 compatible, but the warnings will go away once you build successfully.
Upvotes: 1