macOS:10.14.5
xcode:10.0
appium:1.13.0命令安装(借助淘宝镜像)
1、启动真机safari,报错“Could not navigate to webview”,经分析ios-webkit-debug-proxy没有启动;
2、安装‘brew install ios-webkit-debug-proxy’,启动‘ios_webkit_debug_proxy -c UUID:27753 -d ’,报错‘Could not connect to lockdownd’;
3、
执行以下命令更新解决:
brew update
brew reinstall --HEAD libimobiledevice
brew reinstall -s ios-webkit-debug-proxy
依赖libimobiledevice,liusbmuxd需最新版本--HEAD(checking for libusbmuxd >= 1.1.0),如果不是最新版本启动代理服务,仍会报错‘Could not connect to lockdownd’。且xcode10.0无法更新依赖,需切换到10.2.1更新;
4、更新完毕,开启服务‘ios_webkit_debug_proxy -c UUID:27753 -d’;
5、或者appium启动设置增加“startIWDP”,true;
参考:https://www.cnblogs.com/dreamhighqiu/p/10995970.html
http://appium.io/docs/cn/advanced-concepts/ios-webkit-debug-proxy/
https://github.com/google/ios-webkit-debug-proxy/releases