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の歴史と進化 そしてvisionOSへ (iOSDC 2023)
tokorom
2
780
5分でSharePlay入門
tokorom
2
1.4k
HomeKit 2020
tokorom
7
2.3k
Advanced Segue 2019年のSegue事情
tokorom
9
5.7k
tvOSアプリUIの勘所
tokorom
1
1.9k
カッコ悪くリアクティブじゃダメですか?
tokorom
7
12k
古き良きsendAction (in potatotips #26)
tokorom
1
3.5k
画面遷移と私(iOS)
tokorom
4
3.6k
長生きするために心臓に悪いリリースはもうやめよう
tokorom
21
33k
Other Decks in Technology
See All in Technology
ACRiルーム最新情報とAMD GPUサーバーのご紹介
anjn
0
160
Azure Pipelinesを使用したCICDベースラインアーキテクチャ実践
yuriemori
0
190
簡単に始めるSnowflakeの機械学習
nayuts
1
190
「我々はどこに向かっているのか」を問い続けるための仕組みづくり / Establishing a System for Continuous Inquiry about where we are
daitasu
0
170
大規模ドラレコデータ収集・機械学習基盤を支える AWS CDK 〜導入・運用事例紹介〜
pemugi
0
110
コンテナ・K8s研修 - 後半 Kubernetes 基礎&ハンズオン【MIXI 24新卒技術研修】
mixi_engineers
PRO
1
120
AWSで”最小権限の原則”を実現するための考え方 /20240722-ssmjp-aws-least-privilege
opelab
10
4.4k
Amazon FSx for NetApp ONTAPのパフォーマンスチューニング要素をまとめてみた #cm_odyssey #devio2024
non97
0
220
エンジニア向け会社紹介資料
caddi_eng
14
230k
LINE WORKSへ簡単通知!Incoming Webhookアプリの紹介
mmclsntr
0
110
テスト・設計研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
コンテナ・K8s研修 - 前半 コンテナ基礎・ハンズオン【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
149
45k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.3k
The Language of Interfaces
destraynor
151
23k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
189
16k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
277
13k
Robots, Beer and Maslow
schacon
PRO
157
8.1k
Building Flexible Design Systems
yeseniaperezcruz
323
37k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
23
1.9k
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/