SwiftPackageManagerについて

 SwiftPackageManagerについて

Mobile Act OSAKA #7で発表した資料です

Da1305e5281b5208da85d14a356d01f3?s=128

Takanori Hirobe

November 16, 2018
Tweet

Transcript

  1. Swift PackageManager ʹ͍ͭͯ ϑΣϯϦϧגࣜձࣾ ኍ෦وಙ

  2. ΞδΣϯμ • ۙ೥ͷϞόΠϧΞϓϦͱɺͦΕΛࢧ͑ΔϥΠϒϥϦ • iOS։ൃͰ࢖ΘΕ͍ͯΔϥΠϒϥϦϚωʔδϟ • SwiftPackageManagerΛ࢖ͬͯΈΔσϞ( ͕࣌ؒ͋Ε͹ )

  3. ۙ೥ͷϞόΠϧΞϓϦ • ۙ೥ͷϞόΠϧΞϓϦ͸ෳࡶͰଟػೳ • શͯͷػೳΛࣗલͰ࣮૷͍ͯͯ͠͸్ํ΋ແ͍͕࣌ؒ

  4. iOSΞϓϦ։ൃͱϥΠϒϥϦ • Α͘࢖ΘΕΔػೳΛϥΠϒϥϦԽͯ͠ެ։

  5. iOSΞϓϦ։ൃͱϥΠϒϥϦ

  6. ศརͳϥΠϒϥϦΛࣗ෼ͷΞϓϦͰ࢖͍͍ͨʂ

  7. ϥΠϒϥϦͷ؅ཧ͸Ή͔͍ͣ͠ʂʂ

  8. ґଘ؅ཧ Your App Library A Library B Library C Library

    D Library E
  9. όʔδϣϯ؅ཧ Swiftͷόʔδϣϯ ϥΠϒϥϦͷόʔδϣϯ 2.3 4.5 3.0Ҏ߱ 5.2 4.0Ҏ߱ ࠷৽ͷϥΠϒϥϦΛ࢖ͬͯͶʂ

  10. iOS։ൃͷͨΊͷϥΠϒϥϦϚ ωʔδϟ • CocoaPods
 ࿝ฮͷϥΠϒϥϦϚωʔδϟ
 Ruby੡ • Carthage
 ৽͍͠
 Swift੡

  11. iOS։ൃͷͨΊͷϥΠϒϥϦϚ ωʔδϟ • CocoaPods
 ࿝ฮͷϥΠϒϥϦϚωʔδϟ
 Ruby੡
 αʔυύʔςΟʔ • Carthage
 Swift੡ͷϥΠϒϥϦϚωʔδϟ


    CocoaPodsΑΓ৽͍͠
 αʔυύʔςΟ
  12. iOS։ൃͷͨΊͷϥΠϒϥϦϚ ωʔδϟ • SwiftPackageManager
 
 Swiftຊମʹ૊Έࠐ·ΕͨϥΠϒϥϦϚωʔδϟ

  13. iOS։ൃͷͨΊͷϥΠϒϥϦϚ ωʔδϟ • SwiftPackageManager
 
 Swiftຊମʹ૊Έࠐ·ΕͨϥΠϒϥϦϚωʔδϟ
 iOS։ൃͰ͸΄ͱΜͲ࢖ΘΕ͍ͯͳ͍

  14. ͳͥiOS։ൃͰ SwiftPackageManager͕࢖ΘΕ ͍ͯͳ͍?

  15. ཧ༝͸؆୯ • SwiftPackageManager͕iOSΞϓϦ(UIKit)Λެࣜαϙʔτ ͍ͯ͠ͳ͍͔Β

  16. কདྷͷରԠΛ໿ଋ͍ͯ͠Δ https://github.com/apple/swift-package-manager/blob/master/Documentation/ Usage.md#depending-on-apple-modules

  17. SwiftPackageManagerͷଉਧΛ ײͯ͡ΈΔ σϞ

  18. ͓͢͢Ίࢿྉ • WWDC 2018: Getting to Know Swift Package Manager

    • https://swift.org/package-manager/