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
agvtoolで超かっこよくバージョニングできますか?
Search
tokorom
May 15, 2014
Technology
3
29k
agvtoolで超かっこよくバージョニングできますか?
agvtoolとかBuild SettingsのVersionigという項目のお話
tokorom
May 15, 2014
Tweet
Share
More Decks by tokorom
See All by tokorom
続・SharePlayの歴史と進化 iOS18とApple Vision Proにおける新展開
tokorom
3
560
SharePlayの歴史と進化 そしてvisionOSへ (iOSDC 2023)
tokorom
2
880
5分でSharePlay入門
tokorom
2
1.4k
HomeKit 2020
tokorom
7
2.4k
Advanced Segue 2019年のSegue事情
tokorom
9
5.8k
tvOSアプリUIの勘所
tokorom
1
2k
カッコ悪くリアクティブじゃダメですか?
tokorom
7
12k
古き良きsendAction (in potatotips #26)
tokorom
1
3.6k
画面遷移と私(iOS)
tokorom
4
3.7k
Other Decks in Technology
See All in Technology
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
SSMRunbook作成の勘所_20241120
koichiotomo
3
160
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
130
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
110
Platform Engineering for Software Developers and Architects
syntasso
1
520
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
いざ、BSC討伐の旅
nikinusu
2
780
Lexical Analysis
shigashiyama
1
150
FlutterアプリにおけるSLI/SLOを用いたユーザー体験の可視化と計測基盤構築
ostk0069
0
100
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
1.3k
CDCL による厳密解法を採用した MILP ソルバー
imai448
3
160
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
65
4.4k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Agile that works and the tools we love
rasmusluckow
327
21k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Building Adaptive Systems
keathley
38
2.3k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
How STYLIGHT went responsive
nonsquared
95
5.2k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
RailsConf 2023
tenderlove
29
900
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Transcript
agvtool Ͱ ͔ͬ͜Α͘ όʔδϣχϯάͰ͖·͔͢ʁ ॴ ༑ଠ @tokorom iOS App Programer
These are “not” confidential sessions—please diffuse by your blogging and twitter potatotips #7
agvtoolͬͯʁ • ઌ Cocoaͷʑใہ ͞ΜͰհ͞Εͯͨ ͭ •ϓϩδΣΫτͷόʔδϣϯΛ͍͍͔Μ͡ʹૢ࡞ Ͱ͖ΔίϚϯυ !
BuidSettingsͷVersioningͬͯʁ • ΞϓϦͷVersionΛ͍͍͔Μ͡ʹઃఆ͢ΔͨΊ ͷઃఆ߲ •ઌ·Ͱશ͘Βͳ͔ͬͨͷ͕ͩੲ͔Β͋ͬͨͬ Ά͍ !
Α͋͘ΔVersioning • PlistBuddyͱ͔Λͬͯinfo.plistͷΛநग़ɺ ্ॻ͖ͯ͠Ϗϧυ൪߸Λߋ৽͢Δ • Jenkinsͱ͔ͰΞϓϦΛArchive͢Δͱ͖ʹshell εΫϦϓτͰinfo.plistΛ͍͡Δʢಉ͘͡ PlistBuddyͱ͔Ͱʣ • info.plist
Λ͍͡Δ͔͍͡Βͳ͍͔͕ࠓճ ͷΩʔϙΠϯτ
agvtoolͷ΄͏͕͍͍ͷʁ • Γ·ͤΜ • ͳͷͰࠓௐ͡Ί·ͨ͠ !
$ agvtool new-marketing-version 1.0.1
$ agvtool new-version 1.0.1
$ agvtool new-version -all 1.0.1
Current Project Versionͬͯʁ • info.plist ͷ΄͏ͷهड़͕ ${CURRENT_PROJECT_VERSION} ʹݻఆͰ͖Δ • PlistBuddyͰVersionig͢Δͱ͖ͷinfo.plistʹ͕ࠩग़Δͱ
͍͏͕ղফ͞ΕΔ͔ʁ !
Current Project Versionͬͯʁ • Ͱinfo.plistͷΘΓʹ *.pbxproj ͷ΄͏ʹࠩ ͕ग़ΔΑ • ͰɺBuild
Settingsͷ΄͏ͳΒ info.plist ͱҧͬ ͯ xcconfig ͕͑Δ • xcconfig ΛRun ScriptsͰॻ͖͑ͯͦͷxcconfig ΛgitignoreʹؚΊ͓͚͍͚ͯΔΜ͡Όͳ͍ʁ !
ͨͩ͠ • ͜ͷVersioningͷઃఆͨ͠ޙʹXcodeͷRun͕ ෆ҆ఆʢ·ͩݪҼෆ໌ʣ • ·ͩPlistBuddyͱ͔ΑΓ࣮֬ʹྑ͍ͱஅͰ ͖ͳ͍ • ࠓࢼ࢝͠Ί͚ͨͩͰ࣮༻Խ͍ͯ͠ͳ͍ͷͰ࣮ ༻ͯ͠Έͯͷॴײผ్ใࠂ
!
Build Settings/Versioning • ̍ͭ͜Εͷྑͦ͞͏ͳ͍ํΛհ • Build SettingsͳͷͰConfiguration͝ͱ ʢDebugͱ͔ReleaseʣʹઃఆΛมߋͰ͖Δ !
Build Settings/Versioning
Build Settings/Versioning DebugͰ࣮ߦͨ͠ͱ͖ ReleaseͰ࣮ߦͨ͠ͱ͖ ͞Β #ifdef DEBUG
·ͱΊ • agvtool Մೳੑ͋Δ͔ʁ • agvtool ஔ͍͓͍ͯͯ Versioning ͷઃఆ ߲ௐࠪ͢ΔՁ͕͋Γͦ͏
• ଓ͖WebͰ !
More Information Yuta ToKoRo! iOS App Programer! @tokorom! ! http://www.tokoro.me/