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

bitcode を有効にしたアプリでも dSYM のアップロードを自動化する

bitcode を有効にしたアプリでも dSYM のアップロードを自動化する

18e52d37c929b3a7726fc233206f0a8d?s=128

Kyusaku Mihara

November 07, 2018
Tweet

More Decks by Kyusaku Mihara

Other Decks in Programming

Transcript

  1. bitcode Λ༗ޮʹͨ͠ΞϓϦͰ ΋ dSYM ͷΞοϓϩʔυΛ ࣗಈԽ͢Δ 2018.11.07 CI/CD Test Night

    #1 Kyusaku Mihara (@qmihara)
  2. օ͞ΜͷΞϓϦ͸ bitcode Λ༗ޮʹ͞Ε͍ͯ·͔͢ʁ

  3. bitcode Λ༗ޮʹͨ͠ΞϓϦͷ৔߹ɺ Crashlytics ͳͲͷΫϥογϡϨϙʔτπʔ ϧΛ࢖͍ͬͯΔͱ dSYM ͷΞοϓϩʔυ͕ खؒͰ͢ΑͶʁ

  4. None
  5. download_dsyms • https://docs.fastlane.tools/actions/download_dsyms/ • Download dSYM files from App Store

    Connect for Bitcode apps
  6. upload_symbols_to_crashly tics • https://docs.fastlane.tools/actions/ upload_symbols_to_crashlytics/ • Upload dSYM symbolication files

    to Crashlytics
  7. None
  8. ͜ΕͰ dSYM ͷμ΢ϯϩʔυ ͱΞοϓϩʔυ͸ίϚϯυҰ ͭͰߦ͑ΔΑ͏ʹͳΓ·ͨ͠

  9. None
  10. bitcode Λ༗ޮʹͨ͠ΞϓϦͰ ΋ dSYM ͷΞοϓϩʔυΛ ࣗಈԽ͢Δ

  11. bitcode Λ༗ޮʹͨ͠ΞϓϦͰ ΋ dSYM ͷΞοϓϩʔυΛ ࣗಈԽ͢Δ

  12. None
  13. ઌ΄Ͳ࡞੒ͨ͠ fastlane ͷ lane Λ࣮ߦ͢ΔͨΊͷϫʔΫϑ ϩʔΛ࡞Γ·͢

  14. None
  15. None
  16. ίϚϯυΛ࣮ߦ͢Δ؀ ڥ͸४උ׬ྃ

  17. ࣍͸͜ͷϫʔΫϑϩʔ ΛࣗಈͰ࣮ߦ͢Δ෦෼

  18. ͱ͜ΖͰɺ͍ͭ͜ͷϫʔΫϑ ϩʔΛ࣮ߦ͢Ε͹ྑ͍ʁ

  19. App Store Connect ͷॲཧத͕׬ྃͨ͠ͱ͖ʂ

  20. None
  21. has completed processing ϝʔϧ͕ಧ͍ͨΒ bitrise ͷ ϫʔΫϑϩʔΛ࣮ߦ͢Δʂ

  22. Google Apps Script

  23. ͱ͜ΖͰɺbitrise ͷϫʔΫϑϩʔ Λ Google Apps Script ͔Βୟ͘ ʹ͸ʁ

  24. Build Trigger API https://devcenter.bitrise.io/api/build-trigger/

  25. Build Trigger API • ΤϯυϙΠϯτ͸ https://app.bitrise.io/app/APP-SLUG/build/ start.json • POST ͷϘσΟ͸

    • APP-SLUG ͱ Build Trigger Token ͸ bitrise ͷίϯιʔϧ͔Βೖख
  26. None
  27. ͋ͱ͸ Script Λॻ͘ ͚ͩ

  28. https://gist.github.com/qmihara/d70a25e1c33ddf9caacb28f061086a82

  29. None
  30. ࢒೦ͳ͕ΒϝʔϧΛड͚औͬͨΒɺ Έ͍ͨͳϑοΫ͢Δ࢓૊Έ͸ͳ͍ ͷͰεέδϡʔϦϯάͰରԠ

  31. None
  32. ߏ੒ਤ ipa App Store Connect ϝʔϧ GAS Crashlytics bitrise ϫʔΫϑϩʔ

  33. ·ͱΊ • ൥Θ͍͠ dSYM ͷΞοϓϩʔυ࡞ۀ͕ෆཁʹͳͬͨ • bitrise ศར • Build

    Trigger API ॳΊͯ࢖͚ͬͨͲ؆୯ • Google Apps Script ศར • ͏ͪ͸͜͏ͯ͠ΔɺͳͲ͋Γ·ͨ͠Β࠙਌ձͰੋඇڭ͑ͯ ͍ͩ͘͞ʂ
  34. ͠Ό΂ͬͯͨਓ • Kyusaku Mihara (@qmihara) • DeNA • λΫϕϧ •

    ΧϯϑΝϨϯεΧϝϥϚϯ • iOSDC, try! Swift, etc • CI/CD Test Night #2 ͰΧϝ ϥϚϯ΍Γ·͢
  35. bitcode Λ༗ޮʹͨ͠ΞϓϦͰ ΋ dSYM ͷΞοϓϩʔυΛ ࣗಈԽ͢Δ