2015年9月9日水曜日

[XCode]【Your account already has a valid iOS Distribution certificate】AdHoc出力できないときの対処方法

エラー


Your account already has a valid iOS Distribution certificate
If you have your signing identity on another Mac, you can import a developer profile.
You can also revoke the current certificate and request one again.

背景

Macを新しくしてから、以前に作成したアプリをAdHoc出力しようとしたときに出たエラーです。

Provisioning Profiles は確かに新しくしたはず。
実機でデバッグもできるし、特に問題なくいけていると思っていたのに・・・

いろいろな原因があるのだと思うが、私の場合は次の方法で解決ができました。



解決方法

[iOS Dev Center]-[Certificates, Identifiers & Profiles]-[Certificates]を確認すると、[Type=iOS Distribusion]の有効なものが2つありました。

1つは古いMacの証明書で作成したもの。
1つは新しいMacの証明書で作成したもの。

そこで古いMacの証明書で作成したCertificatesをRevokeしたところ、問題なくAdHoc出力ができました。

参考


0 件のコメント:

コメントを投稿