LoginSignup
2
2

More than 5 years have passed since last update.

Xamarinで作成したiOSアプリが実機デバッグ起動できなくなった場合の対処方法

Posted at

はじめに

Xamarin.Formsを使用してiOSアプリを作成していましたが、いつの間にか、ビルドしたアプリを起動できなくなりました。
対処方法を残しておきます。

環境

PC等

  • Windows 10
  • Visual Studio 2017 Community

機材

  • iPhone7 (iOS11)

現象

アプリ起動

次の状態となります。

  • 以前にビルドしてiPhoneにインストールしてあるアプリ:起動する
  • 今回ビルドしてiPhoneにインストールしたはずのアプリ:起動しない

起動しないのは、Visual Studioでビルド&実行したアプリとなります。

その後、iPhoneを操作してアプリを選択すると起動できますが、Visual Studioで行ったコード修正は反映されていません。(要するに元のままです)

ログ

'AppName.iOS' を 'iPhone7' で起動しています...
アプリが終了しました。
起動に失敗しました。アプリ 'AppName.iOS' を 'iPhone7' で起動できませんでした。エラー: error MT1006: Could not install the application '/Users/xxxx/Library/Caches/Xamarin/mtbs/builds/AppName.iOS/7a4bb2a9fcc59f234974d86c2df4f945/bin/iPhone/Debug/device-builds/iphone9.1-11.0.3/AppName.iOS.app' on the device 'iPhone7': AMDeviceSecureInstallApplicationBundle returned: 0xe80000be (kAMDMismatchedApplicationIdentifierEntitlementError).
。詳細はログを確認してください。
アプリが終了しました。

ポイントとなる記述は、

エラー: error MT1006
kAMDMismatchedApplicationIdentifierEntitlementError

あたりでしょうか。

対処方法

簡単です。iPhoneにインストールされているアプリを削除すればOKです。

アプリ内のデータが消えるのは諦めましょう。(諦めました……)

参考

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