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
520
SharePlayの歴史と進化 そしてvisionOSへ (iOSDC 2023)
tokorom
2
870
5分でSharePlay入門
tokorom
2
1.4k
HomeKit 2020
tokorom
7
2.4k
Advanced Segue 2019年のSegue事情
tokorom
9
5.8k
tvOSアプリUIの勘所
tokorom
1
1.9k
カッコ悪くリアクティブじゃダメですか?
tokorom
7
12k
古き良きsendAction (in potatotips #26)
tokorom
1
3.5k
画面遷移と私(iOS)
tokorom
4
3.7k
Other Decks in Technology
See All in Technology
Amazon_CloudWatch_ログ異常検出_導入ガイド
tsujiba
4
1.6k
急成長中のWINTICKETにおける品質と開発スピードと向き合ったQA戦略と今後の展望 / winticket-autify
cyberagentdevelopers
PRO
1
160
AIを駆使したゲーム開発戦略: 新設AI組織の取り組み / sge-ai-strategy
cyberagentdevelopers
PRO
1
130
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
49k
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
グローバル展開を見据えたサービスにおける機械翻訳プラクティス / dp-ai-translating
cyberagentdevelopers
PRO
1
150
10分でわかるfreeeのQA
freee
1
3.4k
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
4
4.6k
Automated Promptingを目指すその前に / Before we can aim for Automated Prompting
rkaga
0
110
Java x Spring Boot Warm up
kazu_kichi_67
2
490
AWSコンテナ本出版から3年経った今、もし改めて執筆し直すなら / If I revise our container book
iselegant
15
4k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Building Your Own Lightsaber
phodgson
102
6k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Building Applications with DynamoDB
mza
90
6.1k
Raft: Consensus for Rubyists
vanstee
136
6.6k
How STYLIGHT went responsive
nonsquared
95
5.2k
Art, The Web, and Tiny UX
lynnandtonic
296
20k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
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/