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
660
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
410
flutterkaigi_2024.pdf
kyoheig3
0
1k
flutter_kaigi_2021.pdf
kyoheig3
0
1.1k
flutter_kmm_1.pdf
kyoheig3
1
1.1k
iosdc_2018.pdf
kyoheig3
2
2.9k
orecon_vol1.pdf
kyoheig3
4
1.7k
iosdc_2017.pdf
kyoheig3
4
880
ca.swift_2.pdf
kyoheig3
9
1.3k
ca.swift.pdf
kyoheig3
1
2.1k
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
RailsConf 2023
tenderlove
30
1.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Building an army of robots
kneath
306
46k
Designing Experiences People Love
moore
142
24k
Navigating Team Friction
lara
189
15k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
Become a Pro
speakerdeck
PRO
29
5.5k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Writing Fast Ruby
sferik
628
62k
Music & Morning Musume
bryan
46
6.7k
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!