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
iOSDevTH #21
Search
Kajornsak Peerapathananont
August 23, 2022
Technology
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOSDevTH #21
Kajornsak Peerapathananont
August 23, 2022
Transcript
31 slides
None
Bazel for iOS 101
What is Bazel 🥯 • Open source build system from
Google • Internally, called blaze
What is Build System Source code Source code Source code
Source code Source code Build System Compiler Linker Binary
XCBuild Source code Source code Source code Source code Source
code XCBuild Compiler Linker Binary
Foo.swift Baz.swift Bar.swift ⌘ + R Target MyApp MyApp scheme
Target Foo Target Bar Target Baz
⌘ + R MyApp Foo Bar Compiling Linking Copy f
iles Codesigning Framework
⌘ + R Task D Task B Task C Task
A Input Output
Cons of XCBuild Disclaimer: based on my experience
Why? • Single artifacts directory per project • Switching git
branch back and forth => caches invalidated 🫠 • 1 layer of cache
Bazel advantages • Advanced local cache & remote cache •
Optimized dependency analysis • Parallel execution
Bazel dependencies Task D Task B Task C Task A
Input Output
Who use Bazel? uncon f irmed
Bazel rules • Starlark language • python dialect
How about Swift? • swift_library() • apple_resource_group() • ios_application()
Demo
None
None
None
LD IPA IDE XCBuild Compiler Linker Executable
LD IPA IDE Bazel Compiler Linker Executable
Xcode project generation Tulsi rules_xcodeproj
Tulsi
rules_xcodeproj
Bazel cache
Build Event Service (BES)
Remote Execution
When should I use Bazel Task Task Task Task Input
Output Task Task Task Task Task Task Task Task Task
When should I use Bazel Task Task Task Task Input
Output Task Task Task Task Task Task Task Task Task
Not convinced? • XCLogParser • XCMetrics • XCRemoteCache
careersatagoda.com careersatagoda.com careersatagoda. careersatagoda.com careersatagoda.com careersatagoda. careersatagoda.com careersatagoda.com careersatagoda. careersatagoda.com
careersatagoda.com careersatagoda. careersatagoda.com careersatagoda.com careersatagoda. careersatagoda.com careersatagoda.com careersatagoda. careersatagoda.com careersatagoda.com careersatagoda.
More Decks by Kajornsak Peerapathananont
See All by Kajornsak Peerapathananont
Full-Stack Development with FlutterFire
kajornsakp
0
44
How to build native-experience with cross-platform
kajornsakp
0
50
Understanding your Android build
kajornsakp
0
72
What's new in Flutter (Google I/O Extended Bangkok 22)
kajornsakp
0
110
Mobile Design System at scale
kajornsakp
0
160
What's new in Flutter 2020
kajornsakp
0
99
Mobile Machine Learning for All Skill Levels
kajornsakp
0
58
What's new in Flutter 1.9
kajornsakp
0
75
Kotlin meets Web
kajornsakp
0
50
Other Decks in Technology
See All in Technology
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
Libérez Firefox et Thunderbird avec nos astuces
hellosct1
0
100
みん強Lightning! データ基盤ひとりでできるかな
endonanana
0
200
Test Impact Analysis を武器に立ち向かう、AI 時代のテスト増加に対するヌーラボのアプローチ / getting-started-datadog-test-impact-analysis
k6s4i53rx
3
420
Webメール開発を大幅に変えたJMAPというゲームチェンジャー
tascript
1
200
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
2026-11-16 JAWS-UG コンテナ支部 #31 ゆるLT大会 ECR のライフサイクルポリシーを いい感じに設定したい / ECR Lifecycle policy
masasuzu
3
620
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
共通基盤の実装に Kotlin - Quarkus を選定した理由と採用したアーキテクチャ
nealle
1
160
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
490
メール到達性を支える、リンク先URLのドメイン評価の扱い方
wind111
0
200
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
220
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
Believing is Seeing
oripsolob
1
290
So, you think you're a good person
axbom
PRO
2
2.3k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Making Projects Easy
brettharned
120
6.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
GitHub's CSS Performance
jonrohan
1033
470k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k