Macaca 的各种踩坑记录

app-inspector

xctest-client start with port: 8900
WebDriverAgent version: 1.0.41
app-inspector:66:44 [master] pid:72596 undefined
(node:72596) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:72596 undefined
(node:72596) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

用了老办法,卸载WDA,重启手机,然后重新启动,又出现新鲜事(发现最直接的解决办法就是卸载WDA,然后重新插一次数据线)

Macaca 的各种踩坑记录_第1张图片
Screen Shot 2017-02-26 at 16.03.36.png

用回之前的解决办法,卸载app-inspector 再重装,还是无法解决。。真是日了

http://www.cnblogs.com/testway/p/6298126.html
网上搜索到解决方案,发现是WebDriverAgent的签名问题,看了下还真是,于是继续修改,然后又踩坑...
thankdanny:WebDriverAgent thanksdanny$ sh ./Scripts/bootstrap.sh
-e Fetching dependencies
*** Downloading KissXML.framework binary at "5.0.5"
*** Downloading peertalk.framework binary at "v1.0"
*** Downloading RoutingHTTPServer.framework binary at "v1.0.1"
*** xcodebuild output can be found in /var/folders/mc/5hjzf67149l8qny05tsr2s000000gn/T/carthage-xcodebuild.c0dVXN.log
-e Building Inspector
Creating bundle directory...
Building inspector.js...
./Scripts/bootstrap.sh: line 68: cd: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/Inspector: No such file or directory
Error occured during 'npm run build', please check npm build log

反复卸载安装还是不行,也不知道到原因。最后干脆不管了,直接在xcode里设备选择模拟器,居然。。。就build成功了。。

然后继续改包名啥的,然后又出现回之前hang out的问题,然后我拔掉数据线,重新插,再运行次命令。。。tm终于可以了。。。

后来上面没有找到Inspector文件夹那个问题,其实如果不是直接在github下载wda的话,是不用运行那个boostrap脚本的。直接改签名即可

Macaca

你可能感兴趣的:(Macaca 的各种踩坑记录)