Email or username:

Password:

Forgot your password?
Steve Troughton-Smith

Forgetting Xcode's official artificial minimum iOS target version, how far can modern versions of Swift actually back-deploy?

4 comments
Steve Troughton-Smith

LC_VERSION_MIN_IPHONEOS on the embedded Swift libraries is set to iOS 7.0 đŸ‘€ I should do some testing…

Steve Troughton-Smith

The answer, which I'm sure you're dying to know, is that the current version of Xcode and Swift 5.9 can compile an app for iOS 7.

The major caveat being no armv7 support — which means you can only build for 64-bit, so the only possible device this could ever run on is a non-upgraded iPhone 5s.

You also have to substitute in a bunch of arclite libraries into the SDK, which are trivial to find if you go looking

‘Hello from iOS 7.0’ demo app running in the iOS 7 Simulator
Steve Troughton-Smith

I know Swift can't compile for iOS 6 as I've gone down that road in the past — you could, at one point, force it to happen, but there were all kinds of ABI issues and even slightly complex code would segfault. iOS 6 was never officially supported by Swift (though the betas of Swift 1.0 did work, unofficially). But it's kinda nice to know that modern Swift is still back-compatible all the way to iOS 7.0, the first OS Swift supported

Emma (IPG)

@stroughtonsmith last i checked it was iOS 8 but that was a while ago (2020) - in *theory* as long as they've kept support for the built-in Swift runtime i wouldn't imagine that'd have changed...? (12.2 is the minimum so if they officially support 12.0 still then that shouldn't be an issue)

i wasn't able to get anything working on iOS 7 even though they said it worked

Go Up