zhangzhao4444 / AutoMonkey4IOS

AutoMonkey4I是一个基于FastMonkey开发的IOS App自动化调度脚本,内部xctestwd-master请更新为fastmonkey最新版本
18 stars 8 forks source link

解决 Could not connect to lockdownd, error code -21的问题 #1

Open zq190693370 opened 6 years ago

zq190693370 commented 6 years ago

Disconnect all iOS devices, then:

brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libimobiledevice brew install --HEAD ideviceinstaller brew link --overwrite ideviceinstaller sudo rm -rf /var/db/lockdown/*

Connect an iOS device, and choose "Trust" when prompted, after that:

sudo chmod -R 777 /var/db/lockdown/

yujie1985 commented 5 years ago

Disconnect all iOS devices, then:

brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libimobiledevice brew install --HEAD ideviceinstaller brew link --overwrite ideviceinstaller sudo rm -rf /var/db/lockdown/*

Connect an iOS device, and choose "Trust" when prompted, after that:

sudo chmod -R 777 /var/db/lockdown/

please, I get the error: ERROR: Could not connect to lockdownd, error code -3 can you help me?