Pro Yearly is on sale from $80 to $50! »

What's new in building frameworks in Xcode 11: Swift package and XCFramework

93dbc91080dbc0a675476df09f5b3426?s=47 Quang
November 05, 2019

What's new in building frameworks in Xcode 11: Swift package and XCFramework

Swift package integration in Xcode 11
Creating your own Swift package
XCFramework vs traditional universal framework
Creating XCFramework script: https://gist.github.com/quangDecember/6151c0af180a84b79f8b572e289b668f
Meetup photos:
https://speakerdeck.com/quangdecember/whats-new-in-building-frameworks-in-xcode-11-swift-package-and-xcframework

93dbc91080dbc0a675476df09f5b3426?s=128

Quang

November 05, 2019
Tweet

Transcript

  1. WHAT’S NEW IN BUILDING FRAMEWORKS WITH XCODE 11 S W

    I F T PA C K A G E , X C F R A M E WO R K A N D M O R E …
  2. ABOUT ME • SDK developer @ Rakuten Asia, RakutenRewardSDK •

    Twitter: @quangDecember
  3. None
  4. SWIFT PACKAGE MANAGER & XCFRAMEWORK Why ? Integration Create your

    own
  5. 1. SWIFT PACKAGE

  6. WHY NOW?

  7. None
  8. None
  9. None
  10. None
  11. SOURCE CONTROL BENEFITS AUTO CHECKOUT USING DERIVED DATA FOLDER, NOT

    SOURCE CODE FOLDER
  12. REBUILD PROBLEMS

  13. MAKING A SWIFT PACKAGE

  14. None
  15. Root folder path + source

  16. External dependencies

  17. None
  18. CONCLUSIONS ON SWIFTPM Xcode intergration all Swift Source control benefits

    No Bundle resources Slow
  19. 2. XCFRAMEWORK

  20. UNIVERSAL FRAMEWORK, SWIFT BINARY FRAMEWORK

  21. UNIVERSAL FRAMEWORK

  22. UNIVERSAL FRAMEWORK LIPO SIMULATOR FRAMEWORK & DEVICE FRAMEWORK STRIPPING SIMULATOR

    FRAMEWORK FOR APP STORE /usr/local/bin/carthage copy-frameworks
  23. WHY ALMOST NO SWIFT BINARY FRAMEWORK? No stability ABI stability

    (Swift 5, Xcode 10.2) Module stability (Swift 5.1, Xcode 11)
  24. None
  25. XCFRAMEWORK STRUCTURE

  26. XCFRAMEWORK IN XCODEPROJ

  27. WWDC ON CREATE XCFRAMEWORK

  28. None
  29. None
  30. None
  31. UMBRELLA FRAMEWORK PROBLEM

  32. NO DEPENDENCY MANAGER • New dependency manager without binary framework

    support • New binary framework format without a proper dependency manager
  33. CONCLUSIONS ON XCFRAMEWORK Fixed important existing issues with universal frameworks

    Only command line interface Still buggy
  34. THE END A N Y Q U E S T

    I O N S ?