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 several times a day.
The only remedy is to reboot the Mac. This is completely unacceptable and counter to any UNIX based OS. I have run this same Mac for months before installing Yosemite, without issue.
The only clue is in the System logs:
12/22/14 8:42:53.681 PM Xcode[385]: AMDeviceConnect (thread 0x128e11000): Could not connect to lockdown port (62078) on device 67 - 28cb21671799bc4efe266987ae586ba2cb6247b7: 0xe8000084.
I have scoured the web for weeks and even filed a radar. I know that other devs have experienced this ridiculous behavior. Does anyone have a idea what is going on or what service is failing?
Currently running OS X 10.10.1, Xcode 6.1.1 and issues occur with iOS 8.1.2, iOS 8.1 and iOS 7.1.2
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With