Search code examples
swiftapp-store-connect

What's the acceptable swift version for app submission?


I have an existing app in the app store written using swift 3. For subsequent update will Apple reject my app because it's still in swift 3?

According to this link,

If your app is written in Swift, you can continue to submit apps in Swift 4 to the App Store and migrate individual modules to Swift 5 when you’re ready.

So means if swift version is less than 4 my app updates will get rejected? When will they stop accepting swift 4 apps?


Solution

  • Here is an excerpt from Apple:

    Starting March 27, 2019, all iOS apps submitted to the App Store will need to be built with the iOS 12.1 SDK or later, and support the all-screen design of iPhone XS Max or the 12.9-inch iPad Pro (3rd Generation). All watchOS apps will need to support watchOS 5 and Apple Watch Series 4

    This means that any submissions to App Store after March 27, 2019 requires iOS 12.1 SDK or later which I believe is available in Xcode 10.2 onwards. Xcode 10.2 doesn't have support for Swift 3. In essence, Apple stopped accepting applications written in Swift 3 after March 27, 2019.

    The same principle would apply to Swift 4. Whenever they decide to up the minimum SDK requirement, it would force a minimum Xcode version which, in turn, would force minimum Swift version