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,然后重新插一次數據線)
用回之前的解決辦法,卸載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