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
30k
agvtoolで超かっこよくバージョニングできますか?
agvtoolとかBuild SettingsのVersionigという項目のお話
tokorom
May 15, 2014
Tweet
Share
More Decks by tokorom
See All by tokorom
CursorでアプリをBuild/Lint
tokorom
0
140
続・SharePlayの歴史と進化 iOS18とApple Vision Proにおける新展開
tokorom
3
830
SharePlayの歴史と進化 そしてvisionOSへ (iOSDC 2023)
tokorom
3
990
5分でSharePlay入門
tokorom
3
1.5k
HomeKit 2020
tokorom
7
2.5k
Advanced Segue 2019年のSegue事情
tokorom
9
6k
tvOSアプリUIの勘所
tokorom
1
2.1k
カッコ悪くリアクティブじゃダメですか?
tokorom
7
12k
古き良きsendAction (in potatotips #26)
tokorom
1
3.7k
Other Decks in Technology
See All in Technology
会社員しながら本を書いてきた知見の共有
sat
PRO
2
640
Data Hubグループ 紹介資料
sansan33
PRO
0
1.7k
Oracle Database オプティマイザ・ヒントの活用
oracle4engineer
PRO
1
120
カンファレンスのつくりかた / The Conference Code: What Makes It All Work
tomzoh
6
670
OSMnx Galleryの紹介
mopinfish
0
120
型がない世界に生まれ落ちて 〜TypeScript運用進化の歴史〜
narihara
1
190
トイルを撲滅!インフラ領域での生成AI活用のススメ
shuya
0
340
Cloud Run を解剖して コンテナ監視を考える / Breaking Down Cloud Run to Rethink Container Monitoring
aoto
PRO
0
110
AIオンボーディングとAIプロセスマイニング
nrryuya
5
970
勘違いから始まったProxmox on ProxmoxでGPUパススルー【JPmoxs勉強会#7】/JPmoxs7_GPU_Passthrough_on_Proxmox_on_Proxmox-A_Journey_That_Started_with_a_Misunderstanding
tsukimi_site
1
180
熱々🔥のUDN🍜を喰らえ❗マルチテナントもVM統合も思いのまま❗新機能で切り拓くk8sネットワークの未来
tsukaman
0
190
データ戦略部門 紹介資料
sansan33
PRO
1
3.1k
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
122
52k
Typedesign – Prime Four
hannesfritz
41
2.6k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Art, The Web, and Tiny UX
lynnandtonic
298
21k
It's Worth the Effort
3n
184
28k
GitHub's CSS Performance
jonrohan
1031
460k
Build The Right Thing And Hit Your Dates
maggiecrowley
35
2.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/