4 ms·
So how do Swift apps work on 32-bit hardware like iPhone 5/4s if there is no 32-bit runtime?
by maxdesiatov 11y ago
So how do Swift apps work on 32-bit hardware like iPhone 5/4s if there is no 32-bit runtime?
- jjtheblunt 11y agoWhat makes you think they do?
- maxdesiatov 11y agoThe fact that I'm writing Swift apps, releasing them to App Store and testing those apps on iPhone 5/4s and having zero problems with that?
- fullsailor 11y agoThe "32 bit Runtime" is a misnomer. Its a difference between the modern and legacy runtime. iOS (and iPhoneOS) never supported the legacy runtime. The name comes from it being the only runtime for 32 bit OSX apps. https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtVersionsPlatforms.html https://developer.apple.com/library/mac/documentation/Cocoa/...
- ttflee 11y agothe legacy runtime before the `non-fragile` one?
- seivan 11y ago1) I can run a Swift game on iPhone 5 which is still 32-bit. 2) http://stackoverflow.com/questions/24009876/how-can-use-cgfloat-in-swift/24610237#24610237 http://stackoverflow.com/questions/24009876/how-can-use-cgfl...
- shawn-butler 11y agoSwift code is binary compatible with obj-c and xcode embeds a small Swift runtime library shim into your application for prior versions. https://developer.apple.com/swift/blog/?id=2 https://developer.apple.com/swift/blog/?id=2 But I really haven't tried it myself so someone else who has may be able to help you.
- quux 11y agoThere's no support for the 32 bit OSX runtime. The 32 bit iOS is similar to the 64 bit iOS/OSX runtime and works fine.