~/talk

XcodeSurgery: Eliminating Recompilation for your iOS Build Variants

Talkat iOS Conf SG 2021 · 2021-01-20..01-21· [swift]
github:depoon
slides:none on file

XcodeSurgery is a Swift CLI that reuses compiled app binaries to avoid recompiling the same target for multiple variants, using four steps: create a destination target, copy build settings, add a prepare run script, and add a transplant run script. The demo shows two variants drop from ~147+147s to ~147+2s by copying the built .app and swapping binaries and resources; it works for simulator, device installs and archives because Xcode defers code signing and performs no integrity checks between build phases. Variant files in plist plus an encryption key pattern is recommended.

AI-written summary · about

  1. 0:00Introduction
  2. 0:38Overview
  3. 1:53Common reasons for compound times
  4. 2:43Introducing XcodeSurgery
  5. 3:27Installation
  6. 3:59Steps
  7. 4:35Step 1 Create a Target
  8. 5:10Step 2 Copy Build Settings
  9. 5:59Step 3 Create Run Script
  10. 6:20Step 4 Run Script
  11. 6:44Step 5 Build App
  12. 7:25Demo
  13. 15:35Explanation
  14. 15:54How Xcode builds iOS apps
  15. 18:23Why is this possible
  16. 19:02Limitations
  17. 19:39Encryption
  18. 20:43Other Notes
  19. 21:46Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.