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
610
ca.swift_10.pdf
Kyohei Ito
September 26, 2019
Tweet
Share
More Decks by Kyohei Ito
See All by Kyohei Ito
flutter_kaigi_2021.pdf
kyoheig3
0
920
flutter_kmm_1.pdf
kyoheig3
1
990
iosdc_2018.pdf
kyoheig3
2
2.6k
orecon_vol1.pdf
kyoheig3
4
1.5k
iosdc_2017.pdf
kyoheig3
4
830
ca.swift_2.pdf
kyoheig3
9
1.2k
ca.swift.pdf
kyoheig3
1
2k
protocol_buffers.pdf
kyoheig3
6
6.5k
abema_devcon.pdf
kyoheig3
8
7.1k
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Statistics for Hackers
jakevdp
796
220k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
27
1.9k
It's Worth the Effort
3n
183
27k
The Power of CSS Pseudo Elements
geoffreycrofte
72
5.3k
Fireside Chat
paigeccino
32
3k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
A Tale of Four Properties
chriscoyier
156
23k
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!