38
votes

I upgraded my iPad device OS version recently to 5.1.1 (9B206). From that my Xcode is not detecting my device. Am just getting iOS Device and simulator options in my Xcode. But am getting my device in older version of Xcode and iTunes. For this i updated my MAC OS version to 10.7.4 and Xcode version to 4.3.3. But still am facing the same problem. Now how to make my Xcode to detect my device?

13
I just had the same problem after updating my iPad 2 to iOS 6.1.3. The problem turned out to be that my version of xcode wasn't the most recent version, so it didn't have the SDK I needed to develop for 6.1.3.Brian
Had this issue with Xcode 9.4.1 and an iPhone 7 with iOS 11.4. After trying everything in the answers here I restarted the iPhone and that worked.Snehi Vallurupalli
Today it took me a while to understand why my newly installed Xcode did not recognise my iPad. I just needed to read the logs though. "This iPad runs 14.2. To run on this device, please update to a version of Xcode that supports iOS 14.2. " Turns out that I am using a beta iOS version on the iPad. Worth checking this.multitudes

13 Answers

14
votes

Open the Organizer in Xcode, go to devices, find your device and click the option to use for development

116
votes

This Worked for me.

  • Quit Xcode.
  • Disconnect the device.
  • In a terminal window, type: sudo pkill usbmuxd (it will be restarted again automatically)
  • Restart Xcode
  • Connect the device

Your device should now be visible again in Xcode!

9
votes

I just plugged into another USB port and it detected by device.

5
votes

In another case, check the "iOS Deployment Target" in "Build Settings", if the target iOS version number is great than the version of device, then the device will not show in the list.

Say that, the "iOS Deployment Target" == 7.0, and the version of device is 6.0, to solve the problem by change the "iOS Deployment Target" to 6.0 or lower.

3
votes

I was also faced the same issue in Xcode, my device was not detected after update the Xcode latest version(7.3.1)

Done so many things what suggested in the web-search but still the device was not detected.

Finally, I just quit and open the Xcode my device was detected(oh my bad).

2
votes

If the chosen answer still does not work for you try this:

  1. Select the project in project explorer
  2. Select the target on the main window
  3. Select Build Settings
  4. Select Deployment
  5. Select iOS Deployment Target. Change it to the version of your device. (e.g. iOS 5.1)
1
votes

Most recently, Xcode 8.3 and iOS 10.3 seems to have more security around Xcode accessing the iPad/iPhone. My sequence:

  • Rebooted the machine,
  • Attached the iPad,
  • Gone through a "trust this computer" security cycle on both iMac and iPad
  • Xcode can now see the device
0
votes

Sometimes restarting Xcode helps. Give it a shot.

0
votes

In my case, restarting Mac worked and no other solution.

0
votes

This SO answer solved it for me https://stackoverflow.com/a/56054170/5813473 .

sudo killall -STOP -c usbd

did the magic.

Well later I had to unplug/plug in again at occasions, but that 'killall' really solved the original issue.

0
votes

I updated my iPad (it's in Settings -> General -> Software Update, near the top) and restarted my computer and Xcode sees it now.

-1
votes

Just simple, close the project on your XCode. Just right-click on the XCode in the taskbar and give a quit option. After open the XCode from the directory, it will detect your device. It also work on Xcode version 11.2.1

  1. close your project or XCode.
  2. Give Right click on the Xcode in MAC tabbar and give the Quit option.
  3. Reopen the project from your finder(project place).

The device will be automatically detected.

-2
votes

Open the Windows in Xcode, go to devices. If Device is visible in Left side, Right click and select "Show in Destination Menu".

Enjoy..