with CI ⇢Maintains the (open source) tools used to build the app ⇢Keeps developers as productive as possible ⇢Cross platform: iOS & Android ⇢Develops CocoaPods features 3 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
SwiftyThing (as a dynamic library) ⇢libSwiftyThing.a From Swift PM ⇢... And that's it! 5 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
app / command line target 2. Create a static library target 1. Delete Objective-C files 2. Add a Swift file 3. Link the static library into the app 4. Build & Run 5. Profit‽ 14 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
Swift static library support into CocoaPods. If I could do it all again, I would've just made static frameworks work and call it a day. 23 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
tedious and error prone and it's 2018 and no one should ever need to do it 25 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
the imported code For Objective-C to import Swift: ⇢Directly import generated -Swift.h header ⇢Import the generated module 29 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
libraries to import other libraries ⇢It gets rid of buggy bridging headers ⇢Modular imports are semantic, and don't need to be tied to particular header names 36 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
Trivial with frameworks. ⇢Objective-C headers in the module map are immediately usable from Swift ⇢#import <Library/Library-Swift.h> from Objective-C 38 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
⇢Pass the module map to both clang & swiftc ⇢Pass the path to the generated Objective-C interface to clang ⇢Experience all new compiler segfaults 39 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
⇢Objective-C & Swift can both import from Swift static libraries ⇢Just remove use_frameworks! ⇢You're ! good to go 46 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
autocomplete ⇢The path of the Swift generated interface to import ⇢Too many compiler flags ⇢None of this was meant to work in this way. ⇢At all. 47 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018
and write libraries with Swift, is worth the tradeoff. It's better than developing a massive hairball or ignoring the future of platform development. 51 — Building Swift Static Libraries – Samuel Giddins @ iOS Dev Camp DC 2018