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

CI/CDをミニマルに構築する

d_date
October 21, 2021

 CI/CDをミニマルに構築する

iOS Test Tea Time #3

d_date

October 21, 2021
Tweet

More Decks by d_date

Other Decks in Programming

Transcript

  1. CI / CD͸ͳͥ೉͍͠ͷ͔ • ੔උ͍ͯ͘͠ΠςϨʔγϣϯ͕௕͍ • Work fl owΛʮॻ͘ʯˠʮಈ͔͢ʯˠʮࣦഊ͢Δʯ·Ͱ͕௕͍ •

    CLI΍σϑΥϧτͰ͸ͳ͍ݴޠͷηοτΞοϓ • ؀ڥม਺ • iOSͷॺ໊ؔ܎͕΍΍͍͜͠ɺ஌͕ࣝݹ͍ • ܦݧ஋͕ಘΒΕʹ͍͘
  2. CI/CDʹର͢Δߟ͑ํ ࣌ؒରޮՌ • νʔϜਓ਺͕ଟ͍΄ͲޮՌ͸ಘΒΕ΍͍͢ • Work fl owͷमਖ਼ʹΑΓ࡟ݮ͞Ε࣮ͨߦ࣌ؒ • vs.

    मਖ਼͢Δͷʹ͔͔ͬͨ࣌ؒ • ࣮͸ηοτΞοϓΑΓϝϯςφϯεʹ͕͔͔࣌ؒΔ • ߥഇ͢Δ΄Ͳ૲מΓ͸େม
  3. • Swift Package ManagerΛ࢖͏ • XcodeͷSchemeΛ׆༻͢Δ • Automatic Code SigningΛ࢖͏

    • App Store Connect APIΛ࢖͏ • Test FlightͰ഑෍͢Δ Apple PlatformͷCI / CD Best Practice
  4. XcodeͷSchemeΛ׆༻͢Δ • Scheme = Target x Con fi guration •

    SchemeΛࢦఆ͢Δ͚ͩͰઃఆΛ੾Γସ͑ΒΕΔ
  5. Automatic Code SigningΛ࢖͏ iOSͷॺ໊ͱ഑෍͸໘౗ • Certi fi cate (Development /

    Production) • Provisioning Pro fi le (Development / Ad hoc / App Store / Enterprise) • Team • Bundle Identi fi er (per environment)
  6. Automatic Code SigningΛ࢖͏ Provisioning Pro fi le͸Dev Portal͔Βऔಘ • Certi

    fi cate (Development / Production) • Provisioning Pro fi le (Development / Ad hoc / App Store / Enterprise) • Team • Bundle Identi fi er (per environment) *fastlane matchͱͷซ༻͸ෆՄ
  7. App Store Connect APIΛ࢖͏ Provisioning Pro fi le͸Dev Portal͔Βऔಘ •

    Certi fi cate (Development / Production) • Provisioning Pro fi le (Development / Ad hoc / App Store / Enterprise) • Team • Bundle Identi fi er (per environment) • API Key