Can swift 2 code be builded in Xcode3 ?

Hi,


I have a several questions.


1. Is swift 2.0 project could be converted to swift 3.0 easily ?


2. Can swift 2.0 project be builded in Xcode 8.0 ?


3. Can swift 2.0 project passed app store review ?


I heard Swift 3 is a source-breaking release, so this is big issue for me ...


Thanks ! 🙂

Accepted Answer

Swift 2.0 is not supported, but Swift 2.3 is supported. If your code is Swift 2.0, you will have to make some changes to the code, but not as much as for Swift 3.0.


When you open an old project in Xcode 8.0, it will ask you if you want to convert to 2.3 or 3.0. If you create a new project, it will automatically be 3.0, but you can change a build setting (Use Legacy Swift Language Version) if you want to use 2.3 in a new project.


If you build it with Xcode 8.0, Swift 2.3 projects should not have any problems with app review compared to Swift 3.0.


The automatic conversion from 2.0 to 2.3 and 2.0 to 3.0 is helpful, but you will have to make some changes yourself. How much depends on your code.

Can swift 2 code be builded in Xcode3 ?
 
 
Q