Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Swift Version Should I be using?

I have a few questions related to Swift Versions.

I am currently writing an app in Swift 2.2 I am planning on releasing the app to the App Store before iOS 10 is released. Does that mean I need to stay using Swift 2.2 until iOS 10 is released?

Once iOS 10 is released, if I upgrade to Swift 3.0, will I still be able to build for iOS 8 and 9?

What is the purpose of Swift 2.3? Overall, I'm trying to understand what the optimal time to be upgrading versions of Swift is while maintaining compatibility with older iOS versions.

like image 635
Kenneth Avatar asked Jun 05 '26 07:06

Kenneth


2 Answers

You will be able to build for iOS 7, 8 and 9 with Swift 3.0. Swift 2.3 is only to give more time for developers to transition to swift 3.0, considering swift 3.0 is not retro-compatible. If you can move to swift 3.0 right now because you are starting a new project and do not plan to release until september, I would suggest to do it. If not, I would suggest to stay at version 2.2 to ensure you can publish to the app store. Swift 2.3 won't be eternally supported by Xcode (nor Swift 3.0 if it loses compatibility), so as soon as Golden master gets released, I would suggest to get on 3.0.

like image 95
Swift Rabbit Avatar answered Jun 08 '26 00:06

Swift Rabbit


I'll offer counter-advice. Don't count your beta software until it's hatched. If you have a near deadline, don't make your product depend on a beta version of Xcode. (Swift 3 requires Xcode 8.) Beta software doesn't ship until it ships.

Swift 3 represents a number of non-backwards-compatible changes from Swift 2. All the changes appear to be for the better, and worth investing the time to learn, but it makes development decisions difficult during this transition phase.

We will be able to build apps written in Swift 3 for iOS 7-10, but we won't be able to ship those apps until Apple agrees to accept apps built with Xcode 8. Apple MAY allow apps built with Xcode 8 to be submitted to the App store before the Xcode 8 GM release, but they may not.

like image 43
Duncan C Avatar answered Jun 08 '26 00:06

Duncan C



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!