1. WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
找到wda工程路徑,將里面的所有target都配置上證書,編譯測試通過就可以。
wda路徑可能是 /usr/local/lib/node_modules/appium/node_modules/.2.23.1@appium-xcuitest-driver/WebDriverAgent? 或 /Applications/Appium 2.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/
安裝的時候需要在手機通用設(shè)置中信任開發(fā)證書
2. python 包 mac 路徑
/Library/Python/2.7/site-packages
3.HTMLTestRunner網(wǎng)頁加載不完,卡主。
原因是jquery.js的路徑是google地址,國內(nèi)不行,替換 /Library/Python/2.7/site-packages/HtmlTestRunner/template/report_template.html里面jquery.js的地址為https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
4. ios真機卡在Using Xcode9.0, so fixing WDA codebase 不啟動,半天錯誤 BadStatusLine: ' '
好吧,弄了N久都不行,最后重啟電腦好了,不行在重啟手機,好像是端口沖突了。
看這個文檔https://github.com/appium/appium-xcuitest-driver