3
3

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.

Archive したアプリの署名を付け替える

Posted at

概要

訳あって開発時と申請時で異なる Bundle Identifier を使っており、申請に使うバイナリを手元の端末で試したかったのでその方法。

方法

1. ipa を作る

Archive して xcarchive を作ったら、Organize ウィンドウの Export から Development 用の ipa を作る

  • Development distribution options はそのまま (以下は場合により異なる)
    • App Thinning: None
    • Rebuild from Bitcode: YES
    • Strip Swift symbols: YES
    • Include manifest for over-the-air installation: NO)
  • Automatically manage signing で Next

2. 署名を付け替える

以下のコマンドを実行

fastlane sigh resign <対象の ipa ファイル> --signing_identity 'iPhone Developer: your name (ABCD123456)' -n "<付け替え先の bundle id>"

fastlane が入っていなければ

brew cask install fastlane 

signing_identity がわからない場合は

fastlane sigh resign <対象の ipa ファイル> -n "<付け替え先の bundle id>"

から表示される候補の名前を使う

3. 実機へのインストール

  1. Xcode > Window > Devices でインストールしたいデバイスを選ぶ
    • ボタンで先程の ipa ファイルを選ぶ

間違えった signing_identity を指定してインストールした場合などに、再びインストールすると Internal Error が表示されることがある。
このときは端末を再起動して再度試すこと。

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?