Re:Swift 5 Module Stability Workaround for Binary Frameworks
by HeshamMegid on Thursday February 14, 2019 @01:52AM
(#19160127)
It wasn't possible until Swift 5 because of ABI stability. If we were to do that before Swift 5, we would still have to create binaries for each version of Xcode/iOS.
[ Parent
| on HN ]
Re:Swift 5 Module Stability Workaround for Binary Frameworks
by helge5 on Thursday February 14, 2019 @04:29PM
(#19166238)
The ABI stability in the article is solely provided by ObjC, not by Swift. The "Swift ABI" of 5 only helps you with not having to embed the Swift libraries within the ObjC shielded module. (it "just" makes it smaller)
The point of the article is that you can use the stable ObjC ABI to wrap the Swift incompatibilities. And that was technically possible since Swift v1.