Reputation: 1521
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?
Upvotes: 50
Views: 55408
Reputation: 51
As of 2024, this is what worked for me after trying all above answers to not work.
Upvotes: 1
Reputation: 1618
Restarting the iPhone/iPad did the trick, when connecting the cable, the "Trust this computer" alert appeared finally.
Upvotes: 0
Reputation: 8108
What I tried?
How it worked?
Upvotes: 0
Reputation: 3556
I beat my head against this problem for hours before I realized that the problem was being caused by NordVPN.
Upvotes: 7
Reputation: 520
In mac OS Ventura - try settings -> Privacy -> Allow accessories to connect.
Upvotes: 1
Reputation: 41
Recently (2022) I've noticed that the iPad prompt to "Trust this Computer" won't appear unless using an Apple USB-C cable. Apple reps assure me they aren't doing any funny business here, but I have tried every cable I can find, including several thunderbolt 3 and 4 cables and Anker cables. Worth trying an Apple cable if still having problems.
Upvotes: 2
Reputation: 2246
FWIW I tried all the tips in this thread and nothing would work: from reboots, command line statements, unplugging, different USBC ports, etc. I also tried something not mentioned here (yet) by going to "Settings > General > Reset > Reset Location & Privacy" ... however even this didn't work.
Later on in the evening I was in a different room of the house and out of nowhere I got the "Trust This Computer" prompt on my iPad. I of course tapped "Trust" or whatever and then magically my Mac laptop finally sees my iPad.
I realize I'm not really giving a helpful tip/fix here - just sharing how things went for me in case anyone finds useful.
iPad: iOS 13.4.1 | Macbook laptop: OSX 12.3.1
Upvotes: 1
Reputation:
I updated my iPad (it's in Settings -> General -> Software Update, near the top) and restarted my computer and Xcode sees it now.
Upvotes: 1
Reputation: 555
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.
Upvotes: 3
Reputation: 149
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
The device will be automatically detected.
Upvotes: 0
Reputation: 1621
This Worked for me.
sudo pkill usbmuxd
(it will be restarted
again automatically)Your device should now be visible again in Xcode!
Upvotes: 162
Reputation: 6849
I just plugged into another USB port and it detected by device.
Upvotes: 20
Reputation: 1268
Most recently, Xcode 8.3 and iOS 10.3 seems to have more security around Xcode accessing the iPad/iPhone. My sequence:
Upvotes: 2
Reputation: 389
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).
Upvotes: 4
Reputation: 997
Open the Windows in Xcode, go to devices. If Device is visible in Left side, Right click and select "Show in Destination Menu".
Enjoy..
Upvotes: -3
Reputation: 826
If the chosen answer still does not work for you try this:
Upvotes: 4
Reputation: 3066
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.
Upvotes: 7
Reputation: 1143
Open the Organizer in Xcode, go to devices, find your device and click the option to use for development
Upvotes: 15