iOS Devices do not show up on Xcode 6.1.1 - until after rebooting the Mac

前端 未结 4 1465
失恋的感觉
失恋的感觉 2020-12-31 10:21

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

4条回答
  •  庸人自扰
    2020-12-31 10:48

    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.

提交回复
热议问题