Swift2 + AppStore ready + #available(Swift2) ?

Do we know if the current version of Swift 2 is acceptable for release to the AppStore?


And if not is there anyway we can conditionaly compile with Swift2/Swift1.2 (and use either Xcode7 or Xcode 6.3 as appropriate)?


Maintaing two different code bases, one with Swift 1.2 and one with Swift 2 is a hassle I'd rather not get into. Even more so that the the Swift2 c o n v e r t e r is a one way street (I do not know of any means to "back convert" to Swift 1.2, anyone)?


It looks like "preprocessor like swift macros" are ruled out since both branches must be legal, and the Swift2 branch certainly is not legal Swift1.2 code.


What to do?

The developer center doesn"t seem to call it out explicitly on its new design, however it has never acceptable to submit apps using betas(OS, Tools, Languages/APIs) of any kind for general App Store release in the past. We can submit iOS9 beta apps to Internal testers via TestFlight this year however.


You'll mostly likely have to coordinate your development with the final release of iOS9 later this fall to submit Swift 2 apps built with Xcode 7. In order to accomplish this you should be using Source Control and creating a seperate branch to develop your Swift 2 version while still keeping your old code available to make updates/patches to until after iOS9 ships.

Swift2 + AppStore ready + #available(Swift2) ?
 
 
Q