IOS真机调试找不到设备:ERROR: Could not connect to lockdownd, error code -[x]
报错信息: Could not connect to lockdownd, error code -3
解决方法:修改var/db/lockdown文件夹的读写权限
在终端找到文件夹cd var/db ,找到后执行open .直接打开lockdown所在目录查看该文件的读写权限,如果没有读写权限执行命令:sudo chmod -R 777 /var/db/lockdown/
在lockdown文件夹具有读写权限以后依次执行如下命令:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller