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

Xcode previews and llvm Vol.2

Xcode previews and llvm Vol.2

Akio Itaya

April 17, 2020
Tweet

More Decks by Akio Itaya

Other Decks in Programming

Transcript

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

    ʹରͯ͠ instr Λ༗ޮʹ͢ΔΑ͏ʹࢦఆ͠ͳ͚Ε͹ͳΒͳ͍ ͱ͍͏ݱ৅͕ SwiftUI ͷ XcodePreviews ಈ࡞࣌ʹൃੜ͢Δ
  2. Code Coverage Runtime Library ܭଌɾ਍அॲཧ App ཧ૝ਤ instrumented code env

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

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

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