LoginSignup
2
2

More than 5 years have passed since last update.

【AdobeAIR/iOS】ビルド番号(CFBundleVersion)のみを変更する方法

Last updated at Posted at 2015-10-08

ちょっと詰まったのでここに書いておきます。

動作環境
Adobe AIR SDK18以降
http://labs.adobe.com/downloads/air.html


AdobeAIR SDK18以前のバージョンでは、iOS向けにipaを作成すると、application.xmlのversionNumberの値がCFBundleVersion(ビルド番号)とCFBundleShortVersionString(表記バージョン)両方に指定されていました。

そのためビルド番号だけ変更したい場合(例えばリジェクトされたり生成したデータにエラーがあったり)にはいちいちunzipして書き換えて再署名…といった手間がかかっていたのですが、SDK 18からはversionLabelとversionNumberを記述することにより個別に指定できるようになりました。

application.xml
  <!-- CFBundleShortVersionString -->
  <versionLabel>1.0</versionLabel>
  <!-- CFBundleVersion -->
  <versionNumber>1.0.1</versionNumber>
2
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
2
2