1つのプロジェクトで複数アプリをリリースしている場合のメタデータ管理方法です。
複数アプリが全く同じメタデータならいいのですが、アイコンやスクリーンショットを別々にする場合少し工夫をする必要があります。
fastlaneの設定方法はこちらをご参照下さい。
複数アプリ対応
まずは1アプリに対応します。
プロジェクトのルートで以下コマンドを実行します。
fastlane init
アプリのメタデータが以下のような構成でダウンロードされます。
2つ目以降のアプリは以下のように別フォルダを指定してダウンロードします。
fastlane deliver download_screenshots --app_identifier com.example.other --screenshots_path fastlane/screenshots_other_app fastlane deliver download_metadata --app_identifier com.example.other --metadata_path fastlane/metadata_other_app
これで別アプリのメタデータがフォルダに保存されます。
別アプリへのメタデータのアップロードは以下のようにオプション付ける事で実現できます。
fastlane deliver --app_identifier com.example.other --screenshots_path fastlane/screenshots_other_app --metadata_path fastlane/metadata_other_app
上コマンドはFastfileに登録しておけば簡単に実行できるようになります。
fastlane update_metadata_other_app
platform :ios do lane :update_metadata_other_app do deliver( app_identifier: 'com.example', screenshots_path: 'fastlane/screenshots_other_app', metadata_path: 'fastlane/metadata_other_app', ) end end