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使用指令碼指令碼
- 這個專案終於看到了曙光
- Airbnb資料科學家:歷時6個月,我終於找到了心儀的工作AI資料科學
- 我為Redis找到了一個新家——VMWareRedis
- WebGL on iOS8 終於等到了這一天WebiOS
- 很高興!終於踩到了慢查詢的坑
- 基於ReAct機制的AI AgentReactAI
- 花了一個星期,我終於把RPC框架整明白了!RPC框架
- 這款在TapTap獨家上線的武俠新作,讓我看到了一個真實、有溫度的“江湖”APT
- 非常好實用的關於solaris ipmp配置文件
- php的工作真難找PHP
- 我被 .NET8 JIT 的一個BUG反覆折磨了半年之久(JIT tier1 finally optimizations)
- 講個鬼故事:這臺機器人終於“強”成了我要的模樣機器人
- 關於一個非常好用的載入條,只是一個人圖片樣式
- 多虧風變程式設計,讓我找到了人生轉折點!程式設計
- SwiftyPhotos 一個非常好用的PhotoKit框架介面Swift框架
- 我花16塊得到了一個永久的微型伺服器伺服器
- 我終於弄懂了Python的裝飾器(一)Python
- Vue 折騰記 - (17) 基於Ant Design Vue 封裝一個配置式的表單元件Vue封裝元件
- 太難了,我終於把JDBC的程式碼終於優化了!JDBC優化
- 一塊AI晶片定義不了AI手機, 但卻讓華為終於把手機生態做到了點子上AI晶片
- 我把一個大型 C++ 庫移植到了瀏覽器!C++瀏覽器
- 我的第一個python web開發框架(9)——目錄與配置說明PythonWeb框架
- webpack實戰(一):真實專案中一個完整的webpack配置Web
- 將GitLab.com折騰到Kubernetes的一年中,我們踩到了什麼坑?Gitlab
- 裸辭兩個月,4面終入職騰訊,半年後我終於把騰訊 Android 高頻面試真題及解析整出來了Android面試
- 記一次智慧語音軟體的開發-終於為孩子找到了個靠譜的口語老師
- 我的新書終於出來啦新書
- 我是如何成為一個Java Web開發者的JavaWeb
- 一款非常好用的Web端SSH工具:GateOne安裝教程Web
- 寫得非常好的一篇關於Oracle的SCNOracle
- Vue 折騰記 - (16) 基於Ant Design Vue 封裝一個配置式的表單搜尋元件Vue封裝元件
- 50天用react.js重寫50個web專案,我學到了什麼?ReactJSWeb
- Mac 真機 webDriver 配置這塊一直報這個錯誤,請大神指教MacWeb
- 生命在於折騰,寫一個前端資訊推送服務前端
- Spindle3.0--終於等到了!Tapestry3.0的Eclipse PlugIn (轉)EclipsePlugin
- 手把手教你實現一個方法耗時統計的 java agentJava