Xcode doesn't see my iOS device but iTunes does
Solution 1:
Even though this one does not address the specific problem of the OP, it might be a solution for other people finding this question.
In some circumstances, Xcode will not recognise (won't even see) a connected device that was previously recognised, even though there were no changes in Mac OS/iOS/Xcode versions. This seems to happen if you connect the device while the Mac and/or the device are locked when you connect them. The device will ask if you want to trust the computer even though you already did so, but the device will still not be visible in Xcode.
Restarting Xcode or the device do not seem to have any effect. One solution is to reboot the Mac. Another much quicker solution is to restart usbmuxd
:
- 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!
Hope that helps a few people. Apparently it does!
Solution 2:
Select Window ➜ Organizer in Xcode. Now under Devices, select your device. If it is not ready for development then click use for development.
If above doesn't solve your problem then from your project settings, set deployment target to one which your app is developed for or lesser.
Otherwise there is some issue with certificates and provisioning profiles. Make sure your device's UDID is added in the provisioning profile you are using.
Solution 3:
Had the same problem , restarted xcode and it found my phone again.