Since updating to Xcode 6.1 all of my iOS devices will not be recognized by the Mac after a period of time. It used to be every couple of days, but now it is happening sever
I don't know why this bug happens, but after searching a lot about it I got a simple but effective solution.
When the problem starts, I tried to restart my machine, re-install Xcode and Command Line tools without results, and after googling about it, I saw that you can fix it removing lockdown
folder using the command below and restarting.
sudo rm -rf /var/db/lockdown
sudo mkdir /var/db/lockdown
sudo chmod go+w /var/db/lockdown
It works for some users so I will leave it here, but in my case it not helped.
As @mahboudz said, you can trigger the command below from terminal with Xcode closed, without restarting the machine.
sudo launchctl stop com.apple.usbmuxd
This time, my problem was gone, until I turn my Mac next day. The problem came back again. I can resolve it again temporary using the command above, but it will happen again and again on every launch.
Knowing the problem is related with com.apple.usbmuxd
, I saw on some threads that this process is not only related with Xcode, but USB <-> iPhone device communication.
I fix my problem definitely simply downloading and installing iTunes again after stopping com.apple.usbmuxd
process.
I've been having this issue for over a month now. It's not just Xcode but also iTunes, Image Capture, and some other apps that should easily see my devices. I also often get the "trust this computer?" query, but not every time that the Mac starts rejecting my devices.
Instead of restarting the Mac, the other option is to quit Xcode, issue the following command in Terminal:
sudo launchctl stop com.apple.usbmuxd
and then restart Xcode
Top to your Right Click on
Window > Devices
You will see that no devices will be showing
Do the following
Bottom Left
Click on the +
And then start adding your devices.
In Xcode 6.3 with my iPad, I've found that rebooting the iPad works without having to close Xcode.