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?
Open the Organizer in Xcode, go to devices, find your device and click the option to use for development
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!
I just plugged into another USB port and it detected by device.
Open the Organizer in Xcode, go to devices, find your device and click the option to use for development
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.
I beat my head against this problem for hours before I realized that the problem was being caused by NordVPN.
If the chosen answer still does not work for you try this:
- Select the project in project explorer
- Select the target on the main window
- Select Build Settings
- Select Deployment
- Select iOS Deployment Target. Change it to the version of your device. (e.g. iOS 5.1)
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).
This SO answer solved it for me https://mcmap.net/q/356037/-iphone-constantly-disconnecting-while-working-in-xcode .
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.
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
In my case, restarting Mac worked and no other solution.
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.
I updated my iPad (it's in Settings -> General -> Software Update, near the top) and restarted my computer and Xcode sees it now.
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
In mac OS Ventura - try settings -> Privacy -> Allow accessories to connect.
As of 2024, this is what worked for me after trying all above answers to not work.
- Quit Xcode, detach iPhone device with cable.
- Turn off internet and disconnect vpn.
- Launch Xcode with your project.
- Go to devices and simulators. And click on plus sign in devices tab.
- Connect to your same network as iPhone.
- Now connect your iPhone device from a different type c port now.
- You should trust again popup.
- Follow the steps to enable developer mode.
- Go to privacy security and now you should see developer mode. Restart while being attached.
- Allow Trust again and enter your pin.
- Xcode should be happy now.
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
- close your project or XCode.
- Give Right click on the Xcode in MAC tabbar and give the Quit option.
- Reopen the project from your finder(project place).
The device will be automatically detected.
What I tried?
- Tried clearing trusted computer.
- Tried restarting mac.
How it worked?
- I had my iphone connected to the mac via cable, disconnected it.
- Disconnected the ipad and reconnected in different USB - C port in my mac and there I see the sneaky popup with Trust this computer.
Restarting the iPhone/iPad did the trick, when connecting the cable, the "Trust this computer" alert appeared finally.
Open the Windows in Xcode, go to devices. If Device is visible in Left side, Right click and select "Show in Destination Menu".
Enjoy..
© 2022 - 2024 — McMap. All rights reserved.