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

Swift Package Mangerのバグを直した話

k-kohey
September 26, 2023

Swift Package Mangerのバグを直した話

k-kohey

September 26, 2023
Tweet

More Decks by k-kohey

Other Decks in Technology

Transcript

  1. ։ൃ͢Δલ४උʛJTTVFΛબ୒͢Δ JTTVFΛબ୒͢Δ্ͰҎԼͷ֬ೝΛ͢Δͱྑͦ͞͏ͩͬͨ • طʹ'JYࡁΈͷJTTVFͰͳ͍͔ • JTTVF͕PQFOͰ΋ɺ࣮͸ॏෳ͢Δ಺༰ͷJTTVF͕ଘࡏ͠ɺͦͷJTTVF͕طʹमਖ਼͞Ε͍ͯΔͱ͍͏ έʔε͕͋Δ • Ί΅͍͠ΩʔϫʔυͰݕࡧ͠ɺࣅͨΑ͏ͳJTTVF͕ͳ͍͔֬ೝ͢Δͱྑ͍ •

    طʹJTTVFʹணख͍ͯ͠Δਓ͕͍ͳ͍͔ • ΞαΠϯ͕ܾ·ͬͯΔΑ͏ʹݟ͑ͯ΋ɺ௕͍ؒQFOEJOHʹͳ͍ͬͯΔ΋ͷ΋͋Δ఺ʹ஫ҙ • मਖ਼ํ਑ʹؔͯ͠ • ϝϯςφʔͷํ͕໰୊Օॴ΍मਖ਼ํ਑ʹؔͯ͠ΞυόΠε͍ͯ͠ΔJTTVFΛࢄݟͨͨ͠Ίɺฉ͍ͨΒ ڭ͑ͯ͘Εͦ͏ͳงғؾ͕͋ͬͨ
  2. ։ൃ͢Δલ४උ ʛ؀ڥߏங ؀ڥߏங͸9DPEF͕࢖͑Δ؀ڥͩͱ؆୯ʹߦ͑Δʢ˞ʣ  9DPEFΛΠϯετʔϧ  IUUQTHJUIVCDPNBQQMFTXJGUQBDLBHFNBOBHFSΛ DMPOF͢Δ  ϧʔτσΟϨΫτϦʹଘࡏ͢Δ1BDLBHFTXJGUΛ։͘

     ೚ҙͷ4DIFNFΛબ୒͠Ϗϧυ͢Δ  ςετΛ࣮ߦ͢Δ৔߹͸4XJGU1.1BDLBHFΛબ୒ ʢ˞ʣhttps://github.com/apple/swift-package-manager/blob/main/CONTRIBUTING.md#using-xcode-easiest
  3. मਖ਼͢Δʛग़ྗ͔Β໰୊ՕॴΛಛఆ मਖ਼ͷର৅ͱͳΔ)FBEFSϑΝΠϧͷΈΛؚΜͩ5BSHFUΛ࡞Ζ͏ ͱ͢ΔͱɺҎԼͷΑ͏ͳग़ྗ͕ಘΒΕΔࣄ͕Θ͔͍ͬͯͨ • [warning]: Source files for target Bar

    should be located under 'Sources/Bar', or a custom sources path can be set with the 'path' property in Package.swift • [error]: target 'Bar' referenced in product 'Bar' is empty