iPhone アプリ開発で、他のプロジェクトをcloneしたときに An App ID with Identifier 'hoge.hoge' is not available. Please enter a different string. と出る


Posted on 2016年 8月 3日 (水)
Tags ios, programming
iOS, programming

問題

git clone などで他のiPhoneプロジェクトをダウンロードしてビルドしようとすると、 “An App ID with Identifier ‘hoge.hoge’ is not available. Please enter a different string.” というようなエラーが出て、ビルドできない場合があります。

(どうやら、実機でデバッグするときに起こるようです)

解決策

Bundle Identifier の値を変更しましょう。

  1. Xcodeで開いた自分のプロジェクトにあるプロジェクトファイルを開く。

  2. General タブにある Bundle Identifier をユニークな値にする(これがアプリを特定する名前の元となるため)。

  3. 再びビルドを行いましょう。 (ちなみに下の No matching provisioning profiles found は、 Fix Issue を押せば直ります)

Share