web driver agent 真機終於找到了一個非常好的配置方法!折磨了我好多天!
原文地址
I had similar problems to yourself! Firstly I suggest reinstalling appium ("npm uninstall -g appium" and then "npm install -g appium@1.6.1" from the command line) to rule out any of your attempts to fix this issue actually causing more problems!
Then from a fresh install if you follow the steps below exactly that should be all that's be required to get up and running on a real device.
a. Firstly Go to the location of the WebDriverAgent package. Open a terminal window and navigate to directory by typing: cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
b. Whilst in the same directory enter the terminal command : mkdir -p Resources/WebDriverAgent.bundle
c. Then execute the command : sh ./Scripts/bootstrap.sh -d
d. Then execute the command Open WebDriverAgent.xcodeproj which will launch Xcode.
e. With the "General" view selected in Xcode change the bundle identifier string on WebDriverAgentLib & IntegrationApp (replace the "facebook" part with something unique). Then with the "Build Settings" view selected in Xcode click on the WebDriverAgentRunner and scroll down to the "packaging" section and change the bundle identifier there too (replace the "facebook" part with something unique). Now that you have all the bundle identifiers set correctly, choose the "General" view again in Xcode and - choose a dev signing account for each of the following WebDriverAgentLib, WebDriverAgentRunner and IntegrationApp
f. Start the appium server and try and run a test - it will automatically install the WebDriverAgent but it will fail the first time around as it can't launch the WebDriverAgent until the certificate for the app has been trusted on the device.
g. Before you try run again on the device, in iOS, go to Settings > General > Device Management and trust the certificate first
Try again after that and you should be all good!
PS
I made the assumption you were sending all the correct desired capabilities to the Appium Server
You will need to do this every time you upgrade or re-install appium
相關文章
- 裁員,這一次終於輪到了我
- 終於看到了一個完整的mutect2使用指令碼指令碼
- 16天5面,我終於拿到了鵝廠Offer
- Airbnb資料科學家:歷時6個月,我終於找到了心儀的工作AI資料科學
- 我們被一個 kong 的效能 bug 折騰了一個通宵
- 我為Redis找到了一個新家——VMWareRedis
- 基於ReAct機制的AI AgentReactAI
- 花了一個星期,我終於把RPC框架整明白了!RPC框架
- 終於等到了這篇文章了
- 我需要幫助,遇到了一個錯誤
- 我被 .NET8 JIT 的一個BUG反覆折磨了半年之久(JIT tier1 finally optimizations)
- SwiftyPhotos 一個非常好用的PhotoKit框架介面Swift框架
- 很高興!終於踩到了慢查詢的坑
- Vue 折騰記 - (17) 基於Ant Design Vue 封裝一個配置式的表單元件Vue封裝元件
- 將GitLab.com折騰到Kubernetes的一年中,我們踩到了什麼坑?Gitlab
- 我終於弄懂了Python的裝飾器(一)Python
- 講個鬼故事:這臺機器人終於“強”成了我要的模樣機器人
- php的工作真難找PHP
- 這款在TapTap獨家上線的武俠新作,讓我看到了一個真實、有溫度的“江湖”APT
- 多虧風變程式設計,讓我找到了人生轉折點!程式設計
- 一個真實的企業移動終端市場:誰在用?機會和挑戰?
- 我花16塊得到了一個永久的微型伺服器伺服器
- Vue 折騰記 - (16) 基於Ant Design Vue 封裝一個配置式的表單搜尋元件Vue封裝元件
- 一款非常好用的Web端SSH工具:GateOne安裝教程Web
- 安利一個非常好用的 echarts geojson 生成器EchartsJSON
- webpack實戰(一):真實專案中一個完整的webpack配置Web
- 推薦一個非常好用的Chrome擴充套件應用,用於美化Json字串Chrome套件JSON字串
- 堅持寫部落格5年,終於拿到了人生的第一筆稿費
- 太難了,我終於把JDBC的程式碼終於優化了!JDBC優化
- 終於成功白嫖到了2T網盤
- 手把手教你實現一個方法耗時統計的 java agentJava
- 2020我終於成功搭建了Metasploitable3靶機
- 《哈利波特:巫師聯盟》| 22年後,我們終於等到了霍格沃茨的錄取信
- 我把一個大型 C++ 庫移植到了瀏覽器!C++瀏覽器
- 記一次智慧語音軟體的開發-終於為孩子找到了個靠譜的口語老師
- 公司的FMEA為何總是做不好,原因終於找到了!
- 一個非常好的行為驗證碼專案!
- 50天用react.js重寫50個web專案,我學到了什麼?ReactJSWeb