Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Xcode previews and llvm Vol.2
Akio Itaya
April 17, 2020
Programming
0
170
Xcode previews and llvm Vol.2
Akio Itaya
April 17, 2020
Tweet
Share
More Decks by Akio Itaya
See All by Akio Itaya
About published Ad
akkeylab
0
9
me in 2022
akkeylab
0
43
Use KMM to call the API of the National Tax Agency
akkeylab
0
300
SceneKit AND SwiftUI
akkeylab
0
610
Improve user experience with VisionKit
akkeylab
1
230
Language and Region
akkeylab
3
660
How to release apps faster with SwiftUI
akkeylab
5
2.9k
Working style using Swift
akkeylab
0
510
How to use HorizonCalendar
akkeylab
0
1.6k
Other Decks in Programming
See All in Programming
まだ日本国内で利用できないAppActionsにトライしてみた / MoT TechTalk #15
mot_techtalk
0
150
ECテックカンファレンス2023
kspace
1
380
SwiftPMのPlugin入門 / introduction_to_swiftpm_plugin
uhooi
2
110
Workshop on Jetpack compose
aldefy
0
140
2023年にクル(かもしれない)通信ミドルウェア技術(仮)
s_hosoai
0
220
Amebaブログの会員画面システム刷新の道程
ryotasugawara
1
250
存在しないアセットへの参照と 未公開アセットでのネタバレに どう立ち向かうか / How to prevent missing assets and spoilers by assets
orgachem
0
190
Enumを自動で網羅的にテストしてみた
estie
0
1.4k
23年のJavaトレンドは?Quarkusで理解するコンテナネイティブJava
tatsuya1bm
1
140
Rust、何もわからない...#6発表資料
ryu19
0
140
ITエンジニア特化型Q&Aサイトteratailを 言語、DB、クラウドなど フルリプレイスした話
leveragestech
0
460
TypeScript 4.9のas const satisfiesが便利
tonkotsuboy_com
9
2.3k
Featured
See All Featured
Side Projects
sachag
451
37k
The Web Native Designer (August 2011)
paulrobertlloyd
76
2.2k
Documentation Writing (for coders)
carmenintech
51
2.9k
Raft: Consensus for Rubyists
vanstee
130
5.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
217
21k
Become a Pro
speakerdeck
PRO
6
3.2k
Making Projects Easy
brettharned
102
4.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
270
12k
Visualization
eitanlees
128
12k
Product Roadmaps are Hard
iamctodd
38
7.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
239
19k
Principles of Awesome APIs and How to Build Them.
keavy
117
15k
Transcript
AKKEY / AKIO ITAYA LLVM ͷυΩϡϝϯτಡΉӋʹͳͬͨ MatchingAgent, Inc. SwiftUI ಋೖͰ
ଓฤ
໊લɿ൘୩ ߊྑɹ/ɹ͖͋ͬʔ झຯɿυϥΠϒ ׆ಈɿ@AkkeyLab Cyberagent, Inc. MatchingAgent, Inc. େֶೖֶޙϓϩάϥϛϯάʹҰࠍΕɺ18৽ଔ iOS
ΤϯδχΞ ࣗݾհ
ଓฤͰ͢
ৼΓฦΓ Code Instrumentationʢinstrʣ ͕༗ޮͰɺ Static Framework Λ Link ͢Δͱ͖ɺ Linker
ʹରͯ͠ instr Λ༗ޮʹ͢ΔΑ͏ʹࢦఆ͠ͳ͚ΕͳΒͳ͍ ͱ͍͏ݱ͕ SwiftUI ͷ XcodePreviews ಈ࡞࣌ʹൃੜ͢Δ
·ͣɺగਖ਼Օॴ
గਖ਼ ৺૿ͨ͠ͷͷɺ FirebaseCore ͕ݟͨΒͳ͍ͱݴΘΕΔ ΧόϨοδϥΠϯλΠϜϥΠϒϥϦ͕ݺͼग़ͤͳ͍ͱݴΘΕΔ
ཧͷॲཧखॱ
App ཧਤ
ܭଌɾஅॲཧ App ཧਤ instrumented code swiftc -fprofile-instr-generate
Code Coverage Runtime Library ܭଌɾஅॲཧ App ཧਤ instrumented code env
swiftc -fprofile-instr-generate
Code Coverage Runtime Library ܭଌɾஅॲཧ App ཧਤ instrumented code env
linker -fprofile-instr-generate swiftc -fprofile-instr-generate
ݱ࣮
Code Coverage Runtime Library ܭଌɾஅॲཧ App ݱ࣮ਤ instrumented code env
linker swiftc -fprofile-instr-generate ❌
Code Coverage Runtime Library ܭଌɾஅॲཧ App ݱ࣮ਤ instrumented code env
linker swiftc -fprofile-instr-generate ❌ -fprofile-instr-generate ͕దԠ͞Ε͍ͯͳ͍
Code Coverage Runtime Library ܭଌɾஅॲཧ App ݱ࣮ਤ instrumented code env
linker swiftc -fprofile-instr-generate ❌ -fprofile-instr-generate ͕దԠ͞Ε͍ͯͳ͍ ͜ͷݱ͕ XcodePreviews ༻ͷϏϧυ࣌ʹൃੜ͢Δ
݁
Xcode Bug ※ ͓ͦΒ͘
ֶͼ
ֶͼ ɾͦͦΧόϨοδͷৗ࣌༗ޮΑΖ͘͠ͳ͍ ɾCI ͰΧόϨοδΛऔಘ͢Δͱ͖ͷΈ༗ޮʹ͢Δ ࠓճͷʹରͯ͠ΞυόΠε͍͍ͯͨͩͨ͠օ͞Μɺ ͋Γ͕ͱ͏͍͟͝·͢ʂ
Thank you !!