Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift 6 の地味な (?) アップデート

Yutaka
June 20, 2024

Swift 6 の地味な (?) アップデート

Swift 6 での Swift Package Manager のアップデートについて SE-0301 のプロポーザルを紹介します。

Yutaka

June 20, 2024
Tweet

More Decks by Yutaka

Other Decks in Programming

Transcript

  1. ΍ͬͯΈΔ $ swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300

    clang-1600.0.20.10) Target: arm64-apple-macosx14.0 swift --version 
  2. ΍ͬͯΈΔ $ swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300

    clang-1600.0.20.10) Target: arm64-apple-macosx14.0 swift --version swift package --help $ 
  3. ΍ͬͯΈΔ $ swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300

    clang-1600.0.20.10) Target: arm64-apple-macosx14.0 swift --version swift package --help $ ... SUBCOMMANDS: add-dependency Add a package dependency to the manifest add-product Add a new product to the manifest add-target Add a new target to the manifest 
  4. ΍ͬͯΈΔ $ Updating package manifest at Package.swift... done. swift package

    add-dependency \ https://github.com/apple/swift-collections.git \ --from 1.0.0 
  5. Updating package manifest at Package.swift... done. Creating directory Sources/MyTarget... done.

    Writing Sources/MyTarget/MyTarget.swift... done. ΍ͬͯΈΔ $ swift package add-target MyTarget --type library 
  6. ΍ͬͯΈΔ $ Updating package manifest at Package.swift... done. swift package

    add-product MyProduct \ --type library \ --targets MyTarget