Fabricではじめるfastlane

79b9a8029917899ff5f083d6ba366d77?s=47 ZuQ9Nn
August 22, 2017

 Fabricではじめるfastlane

79b9a8029917899ff5f083d6ba366d77?s=128

ZuQ9Nn

August 22, 2017
Tweet

Transcript

  1. FabricͰ͸͡ΊΔ fastlane fastlaneษڧձ vol4 2017/08/22 ZuQ9Nn

  2. ࣗݾ঺հ ZuQ9Nn(͖ͣΎʔΜ) ීஈ͸࢓ࣄͰObjective-CͰiOSͷΞϓϦ։ൃ ͳΜͱະͩʹ࣮຿Ͱ͸SwiftΛॻ͍͍ͯ·ͤΜ fastlane͸ೖ໳࣮ͯ͠຿ར༻͍ͯ͠Δ͕·ͩ·ͩ ॳڃϨϕϧ

  3. Fabricʹ͍ͭͯ 2014೥ʹTwitter͕࢝ΊͨϞόΠϧ։ൃ޲͚ͷ αʔϏε ౰ॳ͸Crashlytics(ΞϓϦͷΫϥογϡղੳ)ɺ MoPub(޿ࠂ)ɺTwitter SDKΛఏڙ 2015೥10݄ʹfastlane͕Fabricʹ૊ΈࠐΈ 2017೥1݄ʹGoogle͕ࣄۀΛങऩ

  4. fastlaneؔ࿈ͰͷFabricͷػೳ fastlaneͷΠϯετʔϧͷαϙʔτ Fastfileͷهड़αϙʔτ GUIϕʔεͰΨΠμϯεʹै͍͚ͬͯ͹ ͒Kʂʂ ͨͩ͠ɺશͯӳޠ

  5. ࠓճͷ؀ڥ macOS Sierra 10.12.6 Xcode 8.3.3 ͋Β͔͡ΊσεΫτοϓʹFabricSampleͷϓϩδΣΫτ Λ࡞੒(ݴޠ͸Swift) ͦͷଞgemͷΠϯετʔϧ͸ಛʹແ͠ʂʂ Developer

    Center΍iTunes Connect ଆͷઃఆ΋ಛʹͯ͠ ͍ͳ͍ɻ
  6. Fabricͷಋೖ ·ͣ͸https://get.fabric.ioͷαΠτʹΞΫηε GET FABRICΛΫϦοΫͯ͠ΞΧ΢ϯτͷ࡞੒

  7. None
  8. ΞΧ΢ϯτ࡞੒ ΞΧ΢ϯτ࡞੒ը໘Ͱ Emai, Password, Full Name, OrganizationΛೖྗ ࢲ͸ϩϘοτͰ͸͋Γ·ͤΜʹνΣοΫ I agree

    to the Fabric Software and ServiceʹνΣοΫ Send ConfirmationϘλϯΛԡ͢ͱ֬ೝϝʔϧ͕ಧ͘ ͷͰঝೝ͢Δ
  9. None
  10. FabricΞϓϦͷಋೖ ϝʔϧͰͷೝূ͕׬ྃ͢ΔͱϓϥοτϑΥʔϜ બ୒ͷը໘͕දࣔ͞ΕΔͷͰɺࠓճ͸ AppleΛ બ୒ MacʹFabric.app͕μ΢ϯϩʔυ͞ΕΔͷͰىಈ ͢Δ

  11. None
  12. FabricΞϓϦͷSign Up MacͷFabric.appʹ Emai,PasswodΛೖྗ ͯ͠Sign UpΛߦ͏

  13. ϓϩδΣΫτʹFabricΛಋೖ Fabric.appͷ + New AppΛΫϦοΫ Select your Xcode Projectը໘Λදࣔ

  14. ϓϩδΣΫτʹFabricΛಋೖ Select your Xcode Projectը໘ͷϒϥ΢ ζΛબ୒ ͋Β͔͡Ί࡞੒ͯ͠ ͍ͨFabricSampleϓ ϩδΣΫτΛબ୒

  15. None
  16. ϓϩδΣΫτʹFabricΛಋೖ Select a Kit to Install ը໘͕දࣔ͞ΕΔͷ ͰCrashlyticsͷInstall ΛΫϦοΫ

  17. ϓϩδΣΫτʹFabricΛಋೖ Terms Agreementը ໘͕දࣔ͞ΕΔͷͰ AgreeΛΫϦοΫ

  18. Run Scriptʹ͍ͭͯ Fabric.appͰ͸Add Run Scriptը໘͕දࣔ ͞Ε·͢ Ұ୴Xcodeͷ FabricSampleϓϩ δΣΫτΛىಈ

  19. XcodeʹRun ScriptΛ௥Ճ XcodeͷφϏήʔγϣϯΤϦΞͰFabricSampleΛબ୒ TARGETͷFabricSmapleΛબ୒ Build PhasesΛબ୒ +ϘλϯΛΫϦοΫ New Run Script

    PhaseΛબ୒
  20. None
  21. XcodeʹRun ScriptΛ௥Ճ XcodeͷRun ScriptΛ։͖ Fabric.appͰ͸Add Run Scriptը໘ͷCopyϘλϯ Λԡ͢ XcodeͷRun Script಺ʹϖʔετ

    XcodeϓϩδΣΫτͰίϚϯυBͰϓϩδΣΫτ ΛBuild͢Δ
  22. None
  23. XcodeʹϥΠϒϥϦΛ௥Ճ Fabric.appͰ͸Install the SDK Kitsը໘͕දࣔ͞ ΕΔ Fabric.appͷϥΠϒϥϦΛυϥοάΞϯυυ ϩοϓͰXcodeϓϩδΣΫτʹ௥Ճ

  24. None
  25. XcodeʹFabric༻ίʔυΛهड़ Fabric.appͰStep 1 of 2 ը໘͕දࣔ͞Ε͍ͯΔ XcodeϓϩδΣΫτͷφϏήʔγϣϯΤϦΞͰ AppDelegate.swiftΛબ୒ AppDelegate.swiftʹFabric.appͰStep 1

    of 2 ը໘ ͷίʔυΛࣸ͢ Fabric.appͰStep 1 of 2 ը໘ͷNextϘλϯΛԡ͢
  26. None
  27. XcodeͷϏϧυͱ࣮ߦ Fabric.appͰStep 2 of 2 ը໘͕දࣔ͞Ε͍ͯΔ XcodeͷϓϩδΣΫτ ͰίϚϯυR Λԡͯ͠ Ϗϧυͱ࣮ߦΛߦ͏

  28. Fabricͷಋೖ׬ྃ Fabric.appͰ Installation Completeը ໘͕දࣔ͞ΕͨΒ Xcode΁ͷಋೖ͸׬ྃ

  29. FabricͰfastlaneͷΠϯετʔ ϧ Fabric.appͷର৅ͷϓ ϩδΣΫτͷFastlane λϒΛΫϦοΫ͠ fastlaneը໘Λදࣔ Get FastlaneϘλϯΛԡ ͢

  30. FabricͰfastlaneͷΠϯετʔ ϧ Fabric.appͰChecking for fasltlaneը໘͕දࣔ͞Ε͍ͯ Δ Checking for fasltlanը໘ Ͱɹ”/Applications/

    Fabric.app/Contents/ Resources/which_fastlane.sh” ΛλʔϛφϧଧͪࠐΉࢦ͕ࣔ ग़͍ͯΔͷͰλʔϛφϧΛ։ ͍ͯͪ͜ΒͷίϚϯυΛ࣮ߦ
  31. FabricͰfastlaneͷFatfileΞγε τػೳ Fabric.appͷfastlaneը ໘ʹUninstallϘλϯ͕ දࣔ͞Ε͍ͯͨΒΠϯ ετʔϧ͸׬ྃʂʂ ݁ہλʔϛφϧ͸ඞཁ ͕ͩgem΍bundler౳͸ ඞཁແ͠ɺ௒ָνϯʂʂ

  32. FabricͰfastlaneͷFatfileΞγε τػೳ Fabric.appͷfastlaneը ໘ͷTASKSͷ Distribute Beta Builds ͷGet StartedϘλϯΛ ΫϦοΫ

  33. FabricͰfastlaneͷFatfileΞγε τػೳ Fabric.appͷfastlaneɺ Set up fastlane betaը ໘͕දࣔ͞ΕΔ Configure Your

    Project ΛΫϦοΫ
  34. FabricͰfastlaneͷFatfileΞγε τػೳ Fabric.appͷfastlaneɺ Configure Projectը໘͕ද ࣔ͞ΕΔ Project / Workspaceͷ Select

    project or workspace to distributeΛબ୒ ର৅ͷ.xcodeprojΛબ୒
  35. FabricͰfastlaneͷFatfileΞγε τػೳ Fabric.appͷfastlaneɺ Configure Projectը໘ʹ SchemeͱExprot Method ͕දࣔ͞ΕΔ SchemeΛબ୒͢Δ Export

    MethodʹAdhoc Λࢦఆ͢Δ
  36. FabricͰfastlaneͷFatfileΞγε τػೳ ϓϩδΣΫτΛίϚϯ υBͰbuild͢ΔΑ͏ʹ ࢦ͕ࣔग़͍ͯΔͷͰߦ ͏

  37. FabricͰfastlaneͷFatfileΞγε τػೳ Setup fastle beta ͷᶆ Give it a tryʹهड़͞Ε͍ͯΔί

    ϚϯυΛλʔϛφϧͰ࣮ߦ (ͨͩ͠ɺ͜ͷίϚϯυ͸ ϓϩδΣΫτͷ௚ԼͰ࣮ߦ ͠ͳ͚Ε͹ͳΒͣɺλʔϛ φϧcdίϚϯυͰϓϩδΣ Ϋτͷ௚ԼʹҠಈ͓ͯ͘͠ ඞཁ͕͋Δß)
  38. ·͔͞ ͜Ε͚ͩͰAdhocͷ ςετ഑෍Λͯ͘͠Ε Δͷ͔ʂʂ

  39. “ͦ͏ເݟͨ೔͕๻ʹ΋ ͋Γ·ͨ͠ɻɻ”

  40. ࢒೦ ྲྀੴʹ͜Ε͚ͩͰɺAdhocͷςετ഑෍͸Ͱ͖·ͤΜɻ Fastfile͸࡞੒ͯ͘͠ΕΔ gymΞΫγϣϯͰipaϑΝΠϧʹ΋Ͱ ͖ͦ͏ʁcrashlyticΞΫγϣϯͰςετ഑෍͸ͯ͘͠Εͦ͏ʁ ͦ΋ͦ΋ϓϩϏδϣχϯά͸ʁʁ CSRͱ͔࡞ͬͯαΠτʹΞοϓϩʔυͯ͠ͳ͍ΜͰ͚͢Ͳɻɻ AdhocͷͨΊͷςετ୺຤ͷొ࿥͸ʁ

  41. ͜ͷޙͲ͏΍Δͷʁ Fabricͷfastfileը໘TASKS ͷRelease Your AppͷGet CodeϘλϯΛԡ͢ͱwebα Πτ͕දࣔ͞ΕαϯϓϧΛ ݟΔ͜ͱ͕Ͱ͖Δ αϯϓϧΛࢀߟʹࣗ෼Ͱؤ ுͬͯॻ͔͘͠ͳ͍ɻɻ

    orz..
  42. ͔͠΋ Ұ൪ϋϚΓͦ͏ͳϓϩϏδϣ χϯάͷ࡞੒ͷαϯϓϧ͕Π ϚΠνΘ͔Γʹ͍͘ʂʂ (matchͷهड़͸ɺΑ͘୳ͤ ͹ݟ͚ͭΒΕ·ͨ͠)

  43. ʗ(^O^)ʘūƃũŠŕŦ

  44. FabricಋೖͷϝϦοτ ࠓͷͱ͜Ζ׬શແྉ ࠓͷͱ͜Ζѻ͑ΔΞϓϦʹ্ݶ౳ͷ੍ݶ͕ଘࡏ͠ͳ͍ iOS͚ͩ͡Όͳ͘Android,Unity΋αϙʔτ CrashlyticsͰΞϓϦͷΫϥογϡϩά͕ղੳͰ͖Δ fastlaneͷΠϯετʔϧʹؔͯ͠͸ɺϋϚΓͳ͘Ͱ͖ Δ

  45. Fabric΁ͷෆຬ fastlaneͷFastfileΞγελϯτػೳʹؔͯ͠͸ظ ଴͸ͣΕɻ ࠓޙͷαʔϏεܧଓʹෆ͕҆͋Δ ༗ྉԽ΍ΞϓϦͷ্ݶ਺͕Ͱ͖ͨΓɺ͋Δ͍͸ ͍͖ͳΓαʔϏεऴྃͷՄೳੑ͸൱ఆͰ͖ͳ͍

  46. ݁࿦ fastlaneʹؔͯ͠͸ɺ͜Ε͔Βಋೖ࢝͠ΊΔਓɺ ΠϯετʔϧʹϋϚͬͯ࠳ંͨ͠ਓʹ͸Fabric ͸௒Φεεϝʂʂ ͢ͰʹfastlaneͷΠϯετʔϧ͸͏·͍ͬͯ͘ಋ ೖ·Ͱ͸໰୊ͳ͍ɻ΋ͬͱޮ཰Αࣗ͘ಈԽΛ͠ ͍ͨϨϕϧͷਓʹ͸ෆཁ

  47. “ೖ໳ऀ͔Βதڃऀ΁ͷ ϨϕϧΞοϓͷಓ͸ݫ ͍͠Ͱ͕͢ɺ͜ͷษڧ ձͰڞʹาΈ·͠ΐ͏”

  48. ͝੩ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠