Swift run on old ios device
Apple’s release of Swift 1.0, has sparked the question:
"Will older iPhones be able to run Swift apps?"
The short answer is yes. But there’s a bit more to it than that.
Will Old Hardware Support Swift?
Yes, as long as you have one of the following you’re good:
- iPhone 6, iPhone 6 Plus
- iPhone 5S, iPhone 5C, iPhone 5
- iPhone 4S, iPhone 4
- 4th Generation iPad, 3rd Generation iPad, iPad 2
- 5th generation iPod touch
Will Old Software Support Swift?
Yes, Swift will support the following operating systems…
- iOS 7 (current)
- iOS 8 (upcoming)
- OS X Mavericks (current)
- OS X Yosemite (upcoming)
What % of People Will Have Trouble?
I’ve got good news… statistically, most people have already upgraded to at least iOS7!
Here’s the raw stats:
- 92% of iOS devices are running iOS 7 right now.
- OS X Mavericks is expected to be running on over 70% of Macs
Apple put quite a lot of effort to make sure Swift would be fully compatible with the majority of devices. This is a great sign and a big win for Swift.
iOS 7 and OS X 10.9 minimum deployment target
The Swift compiler and Xcode now enforce a minimum deployment target of iOS 7 or OS X Mavericks. Setting an earlier deployment target results in a build failure.
So my previous answer(Shown below) will not be applicable to any further development. Swift will no longer available for iOS6 and below ”
桌面版的OS X：目前多数Mac设备都是OS X Mavericks或更新设备了，而Swift支持OS X Mavericks和OS X Yosemite，所以也是：