Why is Swift ABI Stability a Big Deal?

1 · Andrew Bancroft · June 21, 2019, 4:40 a.m.
Imagine writing some Swift code. You want to share it across multiple apps, so you build a framework. You compile it with the Swift 4.0 compiler. Now imagine Apple announces Swift 4.1. Sweet! You decide to build a new app and compile it with the Swift 4.1 compiler. Ah, but your apps needs some of that “shared feature” code from your framework. Will it work? I’ll give you one guess. (the answer’s “nope”) Prior to “ABI stability” being a feature of Swift, the only guarantee we had that two pi...