Xcode previews and llvm Vol.2

Xcode previews and llvm Vol.2

Eae7b6aeee72d3081b01d09a2d675f9a?s=128

Akio Itaya

April 17, 2020
Tweet

Transcript

  1. AKKEY / AKIO ITAYA LLVM ͷυΩϡϝϯτಡΉӋ໨ʹͳͬͨ࿩ MatchingAgent, Inc. SwiftUI ಋೖͰ

    ଓฤ
  2. ໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿυϥΠϒ ׆ಈɿ@AkkeyLab Cyberagent, Inc. MatchingAgent, Inc. େֶೖֶޙϓϩάϥϛϯάʹҰ໨ࠍΕɺ18೥৽ଔ iOS

    ΤϯδχΞ ࣗݾ঺հ
  3. ଓฤͰ͢

  4. ৼΓฦΓ Code Instrumentationʢinstrʣ ͕༗ޮͰɺ Static Framework Λ Link ͢Δͱ͖ɺ
 Linker

    ʹରͯ͠ instr Λ༗ޮʹ͢ΔΑ͏ʹࢦఆ͠ͳ͚Ε͹ͳΒͳ͍ ͱ͍͏ݱ৅͕ SwiftUI ͷ XcodePreviews ಈ࡞࣌ʹൃੜ͢Δ
  5. ·ͣɺగਖ਼Օॴ

  6. గਖ਼ ਌੾৺͸૿ͨ͠΋ͷͷɺ FirebaseCore ͕ݟ౰ͨΒͳ͍ͱݴΘΕΔ ΧόϨοδϥΠϯλΠϜϥΠϒϥϦ͕ݺͼग़ͤͳ͍ͱݴΘΕΔ

  7. ཧ૝ͷॲཧखॱ

  8. App ཧ૝ਤ

  9. ܭଌɾ਍அॲཧ App ཧ૝ਤ instrumented code swiftc -fprofile-instr-generate

  10. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ཧ૝ਤ instrumented code env

    swiftc -fprofile-instr-generate
  11. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ཧ૝ਤ instrumented code env

    linker -fprofile-instr-generate swiftc -fprofile-instr-generate
  12. ݱ࣮

  13. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ݱ࣮ਤ instrumented code env

    linker swiftc -fprofile-instr-generate ❌
  14. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ݱ࣮ਤ instrumented code env

    linker swiftc -fprofile-instr-generate ❌ -fprofile-instr-generate ͕దԠ͞Ε͍ͯͳ͍
  15. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ݱ࣮ਤ instrumented code env

    linker swiftc -fprofile-instr-generate ❌ -fprofile-instr-generate ͕దԠ͞Ε͍ͯͳ͍ ͜ͷݱ৅͕ XcodePreviews ༻ͷϏϧυ࣌ʹൃੜ͢Δ
  16. ݁࿦

  17. Xcode Bug ※ ͓ͦΒ͘

  18. ֶͼ

  19. ֶͼ ɾͦ΋ͦ΋ΧόϨοδͷৗ࣌༗ޮ͸ΑΖ͘͠ͳ͍ ɾCI ͰΧόϨοδΛऔಘ͢Δͱ͖ͷΈ༗ޮʹ͢Δ ࠓճͷ໰୊ʹରͯ͠ΞυόΠε͍͍ͯͨͩͨ͠օ͞Μɺ ͋Γ͕ͱ͏͍͟͝·͢ʂ

  20. Thank you !!