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
380
flutterkaigi_2024.pdf
kyoheig3
0
830
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
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.8k
Fontdeck: Realign not Redesign
paulrobertlloyd
84
5.5k
Six Lessons from altMBA
skipperchong
28
3.8k
Documentation Writing (for coders)
carmenintech
71
4.8k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
How to Think Like a Performance Engineer
csswizardry
23
1.6k
Bash Introduction
62gerente
614
210k
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!