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

スクショから始まるデバッグについて

 スクショから始まるデバッグについて

yidev#16 の発表です

Toshihiro Morimoto

September 27, 2014
Tweet

More Decks by Toshihiro Morimoto

Other Decks in Technology

Transcript

  1. ։ൃͷαΠΫϧ 1. iPhone Simulator 2. ࣮ػ 3. CI 4. Adhock

    Ͱ഑෍ 5. TestFlight ͰϦϦʔεલʹΠϯετʔϧ 6. AppStore ͔ΒΠϯετʔϧ
  2. ։ൃͷαΠΫϧ 1. iPhone Simulator 2. ࣮ػ 3. CI 4. Adhock

    Ͱ഑෍ 5. TestFlight ͰϦϦʔεલʹΠϯετʔϧ 6. AppStore ͔ΒΠϯετʔϧ
  3. ։ൃͷαΠΫϧ 1. iPhone Simulator 2. ࣮ػ 3. CI 4. Adhock

    Ͱ഑෍ 5. TestFlight ͰϦϦʔεલʹΠϯετʔϧ 6. AppStore ͔ΒΠϯετʔϧ ೉ қ
  4. ഑෍ͨ࣌͠ͷσόοάͷ೰Έ • print debug ΍ break point ʹΑΔσόο ά͕΄΅ෆՄೳ •

    ୺຤৘ใʹґଘ͍ͯ͠Δ৔߹ɺঢ়گΛ ਪଌͯ͠σόοά͠ͳ͍ͱ͍͚ͳ͍
  5. ഑෍ͨ࣌͠ͷσόοάͷ೰Έ • print debug ΍ break point ʹΑΔσόο ά͕΄΅ෆՄೳ •

    ୺຤৘ใʹґଘ͍ͯ͠Δ৔߹ɺঢ়گΛ ਪଌͯ͠σόοά͠ͳ͍ͱ͍͚ͳ͍ • όά͕࠶ݱՄೳͳ୺຤ͰσόοάͰ͖ ΔΘ͚Ͱ͸ͳ͍
  6. Crash Report ͷऩू • Crash Report ղੳαʔϏεΛ࢖͑͹ָʹूΊΕΔ • Clashlitics, Bugsnag

    ͳͲ • ͱ͸͍͑ΞϓϦ͕ Crash ͠ͳ͍ͱू·Β͍ͷ͕೉఺ ։ൃऀͱͯ͠͸ Crash ͯ͠΄͘͠ͳ͍
  7. iOS ͷ Framework Ͱൃੜͨ͠ NSError, NSException ͷऩू • Social.framework ΍

    IAP Λར༻͍ͯ͠Δ৔߹͸ɺ୺຤ ଆʹ͔͠৘ใ͕ͳ͍ͷͰ͋Ε͹ͱͯ΋ॿ͔Δ
  8. iOS ͷ Framework Ͱൃੜͨ͠ NSError, NSException ͷऩू • Social.framework ΍

    IAP Λར༻͍ͯ͠Δ৔߹͸ɺ୺຤ ଆʹ͔͠৘ใ͕ͳ͍ͷͰ͋Ε͹ͱͯ΋ॿ͔Δ • Ͳͧ͜ͷ SDK ͕ Crash ͢ΔͷͰ Try-Catch ͯ͠ Crash ͠ͳ͍Α͏ʹͯ͠৘ใΛूΊΔ
  9. iOS ͷ Framework Ͱൃੜͨ͠ NSError, NSException ͷऩू • Social.framework ΍

    IAP Λར༻͍ͯ͠Δ৔߹͸ɺ୺຤ ଆʹ͔͠৘ใ͕ͳ͍ͷͰ͋Ε͹ͱͯ΋ॿ͔Δ • Ͳͧ͜ͷ SDK ͕ Crash ͢ΔͷͰ Try-Catch ͯ͠ Crash ͠ͳ͍Α͏ʹͯ͠৘ใΛूΊΔ • Crash Report ղੳαʔϏεͰ೚ҙͷλΠϛϯάͰϨ ϙʔτΛૹ৴Ͱ͖Δػೳ͕͋Ε͹؆୯ʹूΊΕΔ
  10. iOS ͷ Framework Ͱൃੜͨ͠ NSError, NSException ͷऩू • Social.framework ΍

    IAP Λར༻͍ͯ͠Δ৔߹͸ɺ୺຤ ଆʹ͔͠৘ใ͕ͳ͍ͷͰ͋Ε͹ͱͯ΋ॿ͔Δ • Ͳͧ͜ͷ SDK ͕ Crash ͢ΔͷͰ Try-Catch ͯ͠ Crash ͠ͳ͍Α͏ʹͯ͠৘ใΛूΊΔ • Crash Report ղੳαʔϏεͰ೚ҙͷλΠϛϯάͰϨ ϙʔτΛૹ৴Ͱ͖Δػೳ͕͋Ε͹؆୯ʹूΊΕΔ • ։ൃऀ͕໌ࣔతʹઃఆ͢ΔͷͰͲ͜ͰΤϥʔ͕ى͖ ͯΔ͔͕೺Ѳ͠΍͍͢
  11. Ԡ༻ • AutoLayout Ͱ UIView ʹઃఆ͍ͯ͠Δ Constraints Λ ग़ྗ͢Δ͜ͱ΋Ͱ͖Δ •

    UIWebView Ͱ࡞͍ͬͯΔΞϓϦͰ΋ɺjs ͷ৘ใ(ม ਺, ϒϥ΢βͷ৘ใ)Λग़ྗ͢Δ͜ͱ΋Ͱ͖Δ
  12. Ԡ༻ • AutoLayout Ͱ UIView ʹઃఆ͍ͯ͠Δ Constraints Λ ग़ྗ͢Δ͜ͱ΋Ͱ͖Δ •

    UIWebView Ͱ࡞͍ͬͯΔΞϓϦͰ΋ɺjs ͷ৘ใ(ม ਺, ϒϥ΢βͷ৘ใ)Λग़ྗ͢Δ͜ͱ΋Ͱ͖Δ • completionBlock Λ࢓ࠐΜͰ͓͘ͱεΫγϣΛࡱΔͱ εΫγϣͱσόοΫ৘ใΛ Slack ΍ S3 ΍ϝʔϧ౳Ͱ ࣗಈతʹૹ৴͜ͱ΋Ͱ͖Δ
  13. Ԡ༻ • AutoLayout Ͱ UIView ʹઃఆ͍ͯ͠Δ Constraints Λ ग़ྗ͢Δ͜ͱ΋Ͱ͖Δ •

    UIWebView Ͱ࡞͍ͬͯΔΞϓϦͰ΋ɺjs ͷ৘ใ(ม ਺, ϒϥ΢βͷ৘ใ)Λग़ྗ͢Δ͜ͱ΋Ͱ͖Δ • completionBlock Λ࢓ࠐΜͰ͓͘ͱεΫγϣΛࡱΔͱ εΫγϣͱσόοΫ৘ใΛ Slack ΍ S3 ΍ϝʔϧ౳Ͱ ࣗಈతʹૹ৴͜ͱ΋Ͱ͖Δ • ಛఆͷϢʔβʔ͚ͩσόοά৘ใΛग़ྗ͢Δ͜ͱ΋ Մೳ
  14. TODO • ݱࡏදࣔ͞Ε͍ͯΔ UIViewController ͷ debugObject Λ͍ͭͰ΋औಘͰ͖ΔΑ͏ͳ interface Λ௥Ճ͢Δͭ΋Γ •

    dealforest/DFTAwesomePrint Λ࡞͍ͬͯͯ debugObject Λ colorize ͯ͠ը૾ʹ͢Δͭ΋Γ
  15. TODO • ݱࡏදࣔ͞Ε͍ͯΔ UIViewController ͷ debugObject Λ͍ͭͰ΋औಘͰ͖ΔΑ͏ͳ interface Λ௥Ճ͢Δͭ΋Γ •

    dealforest/DFTAwesomePrint Λ࡞͍ͬͯͯ debugObject Λ colorize ͯ͠ը૾ʹ͢Δͭ΋Γ • AccessToken ΍ cookie Λग़ྗͨ࣌͠ͷͨΊʹ҉߸Խ ͍ͨ͠(QRίʔυͱ͔ʁ)
  16. TODO • ݱࡏදࣔ͞Ε͍ͯΔ UIViewController ͷ debugObject Λ͍ͭͰ΋औಘͰ͖ΔΑ͏ͳ interface Λ௥Ճ͢Δͭ΋Γ •

    dealforest/DFTAwesomePrint Λ࡞͍ͬͯͯ debugObject Λ colorize ͯ͠ը૾ʹ͢Δͭ΋Γ • AccessToken ΍ cookie Λग़ྗͨ࣌͠ͷͨΊʹ҉߸Խ ͍ͨ͠(QRίʔυͱ͔ʁ) • σόοΫ༻ը૾ͷσβΠϯ୭͔͍͍ײ͡ʹͯ͠w