Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Building...Please, wait
Search
Vadym
April 03, 2020
Programming
70
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building...Please, wait
Vadym
April 03, 2020
Transcript
49 slides
BUILDING…PLEASE WAIT VADYM DEHTEROV 1
AGENDA AGENDA ▸ Build configuration, Xcode target, Xcode scheme ▸
Как llbuild строит build graph ▸ Как генерация кода влияет на build time ▸ Как померять время билда 2
BUILD CONFIGURATION 3
4 Build configuration
5 Build configuration Xcode target
6 Build configuration Xcode target Xcode scheme
LLBUILD 7
АВТОМАТИЗИРУЕТ СЕРИЮ ЗАДАЧ ПО СБОРКЕ 8
LLBUILD ЧТО ТАКОЕ LLBUILD? ▸ Новая билд сисистема от Apple
▸ Вызывает компилятор, линковщик и прочих ребят 9
A.swift B.swift C.swift 10
struct B { let c: C } struct A {
let c: C } struct C { let some: String } A.swift C.swift B.swift 11
struct B { let c: C } struct A {
let c: C } struct C { let some: String } A.swift C.swift B.swift struct Hot { let d: String } 12
ОТ КАКИХ ФАЙЛОВ У НАС МНОГО ЗАВИСИМОСТЕЙ? 13
SOURCERY 14
struct B { let c: String = L.Buttons.finish struct A
{ let c: String = L.Buttons.finish } internal enum L { internal enum Buttons { /// FINISH internal static let finish = L.tr("Localizable", “active_workout.buttons.finish") } A.swift localization.generated.swift B.swift 15
ЧТО ЕЩЕ ЗАМЕДЛЯЕТ? 16
let some = a * b 17
let some = (a / Float(c) + 4) * b
18
let some: Float = (a / Float(c) + 4) *
b 19
BUILD TIME КАК МОЖНО ПОМЕРЯТЬ? ▸ -Xfrontend -warn-long-expression-type-checking=100 ▸ -Xfrontend
-warn-long-function-bodies=100 20
Int(exactly: (steps.reduce(0, +) / Double(steps.count)).rounded()) ?? 0 21
22 defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
КАК ЖЕ СОБИРАЮТСЯ ТАРГЕТЫ В РАМКАХ ОДНОЙ СХЕМЫ? 23 Pods
Framework Main App
РАЗБИВАЙТЕ НА ТАРГЕТЫ 24
LLBUILD ЧТО НАМ ДАДУТ РАЗНЫЕ ТАРГЕТЫ? ▸ Разные generated.swift файлы
▸ llbuild умеет компилировать разные таргеты параллельно 25
ГДЕ ПРУФЫ? 26
XCODE-BUILD-TIME-RENDERING 27
28
29 28 Pods Pods
30 28 Pods Pods Framework Framework
31 28 Pods Pods Main app Framework Framework
TARGETS КАКИЕ ТРУДНОСТИ МОГУТ БЫТЬ? ▸ Код должен быть изолированным
▸ Отдельные тесты ▸ Конфликты в xcproject 32
XCODEGEN 33
СТРУКТУРА ФАЙЛОВ И ПАПОК ИЗ ФАЙЛОВОЙ СИСТЕМЫ 34
35
ЧТО ТО ПОПРОЩЕ 36
WMO VS INCREMENTAL 37
INCREMENTAL 38
WHOLE MODULE OPTIMIZATION 39
WMO VS INCREMENTAL WHOLE MODULE OPTIMIZATION ▸ Быстрее, если собирать
clean build ▸ Ломает инкрементальную сборку ▸ Компилятор делает оптимизации 40
INDEX WHILE BUILDING 41
42
BAZEL ЕСЛИ СОВСЕМ ЖМЕТ 43
BAZEL BAZEL OFFERS THE FOLLOWING ADVANTAGES ▸ Remote cache ▸
Multiplatform 44
ЗАВИСИМОСТИ 45
ЗАВИСИМОСТИ ЧТО С НИМИ ДЕЛАТЬ? ▸ Можно хранить уже собранные
▸ Для Carthage уже есть готовые инструменты ▸ Для CocoaPods есть сторонние плагины 46
SUMMARY О ЧЕМ ГОВОРИЛИ? ▸ Xcode target, Xcode scheme, Build
configuration ▸ Как мерять время билда ▸ Несколько лайфхаков как ускорить билд ▸ XcodeGen ▸ Bazel 47
THATS ALL CREDITS ▸ https://github.com/PaulTaykalo/xcode-build-times-rendering ▸ https://swift.org/blog/new-diagnostic-arch-overview/ ▸ https://github.com/apple/swift/blob/master/docs/ CompilerPerformance.md#diagnostic-options
▸ https://developer.apple.com/videos/play/wwdc2018/408/ ▸ https://github.com/yonaskolb/XcodeGen ▸ https://swift.org/blog/whole-module-optimizations/ 48
49 МОЙ ТЕЛЕГРАМ
More Decks by Vadym
See All by Vadym
Date and time
degterev
0
54
Как перестать говорить "Ой, я забыл"
degterev
0
89
Other Decks in Programming
See All in Programming
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
130
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
How SRE Grew Out of Server-Side Work and Became the Team's Own / サーバサイドから始まったSREを チームに渡すまで
maaaato
1
250
特急いなほ as a Workflow / 20261107jaws-festa-2026-akita-lt
kasacchiful
PRO
0
110
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
300
自宅サーバはどこまで再現できるのか - Proxmox VE上のVM環境をIaCとバックアップで戻してみた
youto
0
450
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
AI駆動TDD ― 2026年10月版
hrmstrsmgs
0
110
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
480
joyful-journey-spring-boot.pdf
hollycummins
0
120
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
Featured
See All Featured
The browser strikes back
jonoalderson
0
2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Everyday Curiosity
cassininazir
0
420
Why Our Code Smells
bkeepers
PRO
340
58k
Statistics for Hackers
jakevdp
799
230k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
Leo the Paperboy
mayatellez
11
2.5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
690
Well, that’s weird…
csswizardry
1
230
Mind Mapping
helmedeiros
1
460
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.3k