Zenn
🕌

iPhone実機にデベロッパモードが表示されない場合の対策

に公開

こんにちは、ワニかず@40歳 出戻りエンジニアです。
「iPhoneのデベロッパモードが表示されない!」
ということで、色々やった際の流れをまとめました。

対策

私の場合は、

  • iPhoneとMacを接続を何回か繰り返す
  • iPhone側で以下の「このコンピュータを信頼しますか?」で「信頼」を選択

すると「デベロッパモード」が表示されたようです。

デベロッパモードが表示された後の流れ

  1. Xcodeで「Window」→「Devices and Simulators」を選択

  2. iPhoneが接続されていると、「Devices」が以下の画面のようになっていると思います。

Waiting to reconnect to iPhone Previous preparation error: Developer Mode disabled. To use iPhone for development, enable Developer Mode in Settings → Privacy & Security.

と記載されているので、iPhone側の操作をしていきます。

  1. iPhoneで「設定」→「プライバシーとセキュリティ」→「デベロッパモード」を選択

  2. デベロッパモードをトグルをオン

  3. 「再起動」を選択

  4. すると、Xcodeのほうで、以下の画面となり、

Browsing on the local area network for iPhone, which has previously reported preparation errors.Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.The device must be opted into Developer Mode to connect wirelessly.

と表示されるかもしれませんが、私の場合はしばらくすると画面が進みました。

  1. 以下の画面になります。

⏱️Connecting to iPhone Xcode will continue when the operation completes.

と表示されますが、しばらくすると画面が進みます。

  1. 以下の画面になります。

⏱️ Waiting to reconnect to iPhone Previous preparation error: The developer disk image could not be mounted on this device, because the device is locked.; Please unlock the device.

と表示されますが、しばらくすると画面が進みます。

  1. 以下の画面になります。

⏱️ Copying shared cache symbols from iPhone (〇% completed) Xcode will continue when the operation completes.

と表示されますが、しばらくすると画面が進みます。

  1. 以下の画面になります。

⏱️ Extracting shared cache symbol for iPhone Xcode will continue when the operation completes.

と表示されますが、しばらくすると画面が進みます。

  1. 以下の画面になります。

⚠️ iPhone needs to be prepared for development Development services need to be enabled. Ensure that the device is unlocked.

と表示された後に、画面を切り替えて戻ってくると、警告が消えているかと思います。

Discussion

ログインするとコメントできます