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

前端 未结 4 1443
失恋的感觉
失恋的感觉 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.

    0 讨论(0)
  • 2020-12-31 10:56

    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

    0 讨论(0)
  • 2020-12-31 10:56

    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.

    0 讨论(0)
  • 2020-12-31 10:58

    In Xcode 6.3 with my iPad, I've found that rebooting the iPad works without having to close Xcode.

    0 讨论(0)
提交回复
热议问题