Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ca.swift_10.pdf
Search
Kyohei Ito
September 26, 2019
0
650
ca.swift_10.pdf
Kyohei Ito
September 26, 2019
Tweet
Share
More Decks by Kyohei Ito
See All by Kyohei Ito
layerx_20241129.pdf
kyoheig3
2
390
flutterkaigi_2024.pdf
kyoheig3
0
890
flutter_kaigi_2021.pdf
kyoheig3
0
1k
flutter_kmm_1.pdf
kyoheig3
1
1.1k
iosdc_2018.pdf
kyoheig3
2
2.8k
orecon_vol1.pdf
kyoheig3
4
1.6k
iosdc_2017.pdf
kyoheig3
4
870
ca.swift_2.pdf
kyoheig3
9
1.3k
ca.swift.pdf
kyoheig3
1
2.1k
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Unsuck your backbone
ammeep
671
58k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
34k
The Language of Interfaces
destraynor
158
25k
A designer walks into a library…
pauljervisheath
206
24k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Fireside Chat
paigeccino
37
3.5k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Transcript
νʔϜ։ൃͱ Micro Frameworkͱ XcodeGen 2019/9/26 CA.swift
About Me ҏ౻ɹګฏ Github : KyoheiG3 Twitter : @KyoheiG3
νʔϜ։ൃ × XcodeGen
ੈؒҰൠͰݴΘΕ͍ͯΔ͜ͱ gitͷίϯϑϦΫτͱ͓͞ΒͰ͖Δ
࣮ࡍʹͬͯΈͯΘ͔ͬͨ͜ͱ gitͷίϯϑϦΫτͱ͓͞ΒͰ͖Δ
ͳͥίϯϑϦΫτͱ͓͞ΒͰ͖Δͷ
ಛ • ϓϩδΣΫτߏΛએݴతʹॻ͚ͩ͘ • ෆඞཁͳઃఆΛॻ͘ඞཁ͕ͳ͍ • σΟϨΫτϦͷߏ͕Navigatorʹͦͷ··ө
None
ͦͷଞͷϝϦοτ • ൺֱతՄಡੑ͕ߴ͍ • ࠶ར༻͍͢͠
σϝϦοτ • XcodeGenͷόʔδϣχϯάඞਢ • cocoapodsܦ༝ͰͷΠϯετʔϧͰ͖ͳ͍
ίϯϑϦΫτ͠ͳ͍ͱ͍͏͜ͱ ϓϩδΣΫτมߋͷGitͷ͕ࠩग़ͳ͍
ϑΝΠϧͷҠಈ͕͍͢͠
Ϟδϡʔϧͷ࠶ߏ͕༰қʹͳΔ
XcodeGen
खॱ 1. ඞཁʹԠͯ͡.xcconfigʹઃఆΛॻ͖ग़͢ 2. .yamlʢ.jsonʣʹϓϩδΣΫτߏΛॻ͘
.xcconfigઃఆ • ࢹͰ֬ೝ͠ͳ͕ΒҠߦ͢Δ • πʔϧΛ͏ https://github.com/toshi0383/xcconfig-extractor
None
None
None
None
͓͢͢Ίͷߏ • .yamlʹґଘઃఆΛΰϦΰϦॻ͔ͳ͍ • ϓϩδΣΫτͷ.xcconfigʹΞϓϦͳͲͷλʔήοτݻ༗ͷ ઃఆΛॻ͔ͳ͍ • cocoapods͕ࣗಈੜ͢Δ.xcconfigɺλʔήοτݻ༗ ͷ.xcconfigʹinclude͢Δ •
.xcodeprojΛ.gitignoreʹه͢Δ
͓͢͢Ίͷ࣮ߦํ๏ • git hooksʹɺcheckoutmergeͷλΠϛϯάͰxcodegenΛ ࣮ߦ͢Δ • xcodegen࣮ߦͷޙʹpod installߦ͏Α͏ʹ͢Δ
͜͜·ͰདྷͨΒυϥεςΟοΫͳߏͷมߋ͕Մೳʹ
Micro Framework × XcodeGen
ࡉԽ͞ΕͨFrameworkʹى͜Γ͏Δঢ়گ • Ϟδϡʔϧͷஔ͖͑ • ΞʔΩςΫνϟͷݟ͠ʹΑΔϑϨʔϜϫʔΫͷ౷߹ • ൚༻ԽΛૂͬͨϞδϡʔϧͷ
Model Framework
dependency
Demo https://github.com/KyoheiG3/XcodeGenSample
·ͱΊ
·ͱΊ • ϑΝΠϧσΟϨΫτϦͷҠಈʹؾΛΘͳͯ͘ྑ͍ • ϑϨʔϜϫʔΫͷґଘઃఆ͕ઈָ
Thanks!