0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインでXcodeのプロジェクトのVersionNumberやBuildNumberの変更方法

Last updated at Posted at 2019-09-30

Xcodeのプロジェクトのバージョンをコマンドラインから一括で指定した値に変更したい場合や、
バージョン更新したいときに便利なのでメモ。
fastlaneの increment_build_numberincrement_version_number とかの内部で使っているやつです。

VersionNumberを指定した値にする

agvtool new-marketing-version <VersionNumber(ex. 1.0.1)>

BuildNumberを1つ上げる

agvtool next-version -all

バージョン1つ上げると

  • <プロジェクト名>.xcodeproj/project.pbxproj
  • <プロジェクト名>/Info.plist
  • <プロジェクト名>Tests/Info.plist
  • <プロジェクト名>UITests/Info.plist

の4つのファイルに変更が入るので、手動で変更する際は変更漏れに注意ですね。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?