5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android StudioがiPhone実機を認識しなくなった場合の対処法

Posted at

現象

ケーブル抜き差ししても反応はあるものの、Android Studio上では認識しなくなったので実機ビルドができない。

確認

flutter doctorを実行

$ flutter doctor -v

  ...

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.114
    ! Error: Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window.  (code -1)

• No issues found!

手順

XCodeを開いて Windows > Devices and Simulators を開く。 Devicesを選択する。Android Studio上では認識しなくなった端末が、XCodeでは認識されていることを確認。エラー内容も表示されているので確認する。

端末を右クリックしてUnpair Deviceを選択。その後ケーブルを抜き差しするとiPhoneで信頼できる端末がどうか聞かれるので信頼を押す。するとXCodeで表示されていたエラー内容が消え、Android Studioでも認識されるようになります。

5
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?