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

Speed up iOS Development 
 with LLDB Code Injec...

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

By JJ Lin @LINE TECHPULSE 2019 https://techpulse.line.me/

LINE Developers Taiwan

December 04, 2019
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. > ChienJu Lin / LINE Taiwan Engineering Speed up iOS

    Development 
 with LLDB Code Injection 
 and Framework Live Preview
  2. Build only the module that currently working on Less Compile

    Source Count Only Build the Framework Less Build Time Coordinator Pattern Dependency Injection Framework
  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 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 Write Failing Test Make It Pass Refactor
  6. LLDB Code Injection - Example 4. Wait the async task

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