1
0

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 1 year has passed since last update.

Xcode13でipaファイル作成時にビルド番号が勝手に変更される。

Posted at

Manage Version and Build Numberという機能が追加されており、ipaファイル作成時にビルド番号が勝手に採番され、App Store Connectにアップロードする際齟齬が起こらないようにしてくれる。ただ、デフォルトでONになっているので、知らないと、なぜかビルド番号が勝手に変更されていることになり混乱することになる。

参考:

【Xcode 13】アーカイブ後にバージョンとビルド番号を更新できるようになってた
Apple Xcode13 Release Note

When uploading an app to App Store Connect, the distribution assistant in Xcode detects whether your app has a valid build number (CFBundleVersion). If your app has an invalid number (like one that was used previously, or precedes your current build number), the distribution assistant provides an option to automatically increment it to a valid number. In addition, the distribution assistant ensures that the build numbers of all embedded content in your app (such as app extensions, App Clips, or watchOS apps) are in sync with your app. Note that this doesn’t modify your source code or your archive; Xcode updates the build number in a staged copy of your app before packaging and uploading it to App Store Connect. (59826409)

OFFにするには

手動

以下のManage Version and Build Numberのチェックを外す。
スクリーンショット 2022-05-06 16.42.37.png

自動

xcodebuildコマンドを使っている場合は、xcodebuild -hに記載がある通りで、export optionsに以下を渡す。
manageAppVersionAndBuildNumber: NO

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?