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

Speed up iOS Development with LLDB Code Injecti...

Speed up iOS Development with LLDB Code Injection and Framework Live Preview

ChienJu Lin
LINE Taiwan Engineering 7 iOS Developer
https://linedevday.linecorp.com/jp/2019/sessions/S2-8

LINE DevDay 2019

November 21, 2019
Tweet

More Decks by LINE DevDay 2019

Other Decks in Technology

Transcript

  1. 2019 DevDay Speed Up iOS Development With LLDB Code Injection

    and Framework Live Preview > ChienJu Lin > LINE Taiwan Engineering 7 iOS Developer
  2. Build only the module that currently working on Less Compile

    Source Count Only Build the Framework Less Build Time
  3. > Not embedded/linked by others Clean refactoring might need lots

    of works Tips for Existing Projects Apply Dummy Framework First Easier To Apply, Refactor Afterwards
  4. > No need many scrolls and clicks > Preview with

    different language / device size Interactive Fast Access Preview Under Different Environment SwiftUI / Playground Live Preview > Preview in different view state
  5. Test Driven Development in Playground To build faster at every

    iteration Write Failing Test Make It Pass Refactor Unit Tests / TDD are best to verify logic > Unit Test the framework in playground for interactive environment > Move to test target for CI after completion
  6. LLDB Code Injection - Example 4. Wait the async task

    to complete. Retrigger the breakpoint, check result & Done.