【Unity】iPhone に実機転送すると development team がないエラー
久しぶりに iPhone に実機転送しようとしたところ、XCode実行時に以下のエラーが出ました。
Signing for "Unity-iPhone" requires a development team. Select a development team in the project editor. (in target 'Unity-iPhone')
この記事によれば、Xcode8 からXcodeエディタ上でTeamを設定する必要があるそうです。最近、iOSでリリースしてなかったので知りませんでした...
詳しい説明は上の記事のほうが画像付きで詳しいので、簡単に手順だけまとめます
1. General > Signing > Add Account
2. Apple ID と Password を入力して Sign In
3. Team のドロップダウンで自分のアカウントを選択
実行すると、別のエラーが2個発生しました。
Your development team has reached the maximum number of registered iPhone devices.
Provisioning profile "iOS Team Provisioning Profile: (Bundle Id)" doesn't include the currently selected device "(端末名)".
そういえば、最近 iTunes Connect 開いてないなと思って確認してみたら、
デベロッパプログラムのメンバーシップの有効期限切れ
でした...