Binary Frameworks
in Swift
Peter Steinberger, @steipete
dotSwift Paris 2018 — Peter Steinberger, PSPDFKit — @steipete
Slide 2
Slide 2 text
Application Binary
Interface
Slide 3
Slide 3 text
A Moving Target
• Nov'15 ABI is a goal on the Swift 3 Roadmap
• May'16 "loftier goals aren’t going to fit"
• Jul'16 "goal of achieving stability in Swift 4"
• Feb'17 "Given the importance..." deferred
• Aug'17 "stable ABI a hard goal"
Slide 4
Slide 4 text
When ABI Matters
• Binary compile cache
• Embedded Swift runtime library
Slide 5
Slide 5 text
Swift Module Format
• binary equivalent for header files
• contains AST and SIL
Slide 6
Slide 6 text
Binary Swift Frameworks
In Production
Slide 7
Slide 7 text
Conclusion
• tl;dr: ABI is not that important
• Build SDKs in Objective-C(++)
http://pspdfkit.com/blog/2018/binary-frameworks-swift
More on Twitter: @steipete