Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone not connected

Tags:

xcode

ios

iphone

I have my iPhone connected to Xcode. It used to work just fine recently. I see it in the Devices and Simulators section, but when I try to compile my app, it says:

D's iPhone 6S is not connected. Xcode will continue when D's iPhone 6S is connected.

In the Devices and Simulators I see it as disconnected.

I tried restarting the phone, turning it's wifi on and off. It's connected to the same wifi network, I tried restarting Xcode, nothing. I run Xcode 9, Beta 6 at the moment. Does anyone has similar issue and hopefully know how to solve it?

like image 799
Dani Avatar asked Sep 02 '17 13:09

Dani


People also ask

Why does it say iPhone not connected?

One common reason why this notification appears is because your iPhone is too far away from your Wi-Fi router to establish a strong connection. Try moving your iPhone closer to your Wi-Fi router and see if the message disappears.

Why is my phone saying not connected?

Restart your device. Open your Settings app and tap Network & internet or Connections. Depending on your device, these options may be different. Turn Wi-Fi off and mobile data on, and check if there's a difference. If not, turn mobile data off and Wi-Fi on and check again.


2 Answers

Troubleshooting:

  1. plug in your iPhone.
  2. Open Xcode
  3. go to window -> Devices and Simulators
  4. Right click on your device
  5. click Unpair Device and unplug it.
  6. restart Xcode
  7. restart your iPhone.
  8. Connect your iPhone via USB
  9. run your app
  10. then unplug it, and it should run via the wifi again.

Set up

  1. Window -> Devices and Simulators

enter image description here

  1. Choose your device from the list.

enter image description here

  1. Tick the box for "connect via network."

enter image description here

like image 113
ScottyBlades Avatar answered Sep 24 '22 23:09

ScottyBlades


In Window > Devices and Simulators, right click on your iPhone and "Connect with IP address", then enter the iPhone IP address and you're connected.

like image 35
Sam H. Avatar answered Sep 22 '22 23:09

Sam H.