ios UI自动化环境配置

  好久没更新博客了,上段时间弄了ios的UI自动化,一路遇坑,一路填,整理了下ios的环境配置方式

 
  1、 下载Xcode,下载最新版即可
  2、下载WebdriverAgent
  地址: https://github.com/appium/WebDriverAgent可以下载zip包,也可以git拉取,或下载文件包
   
  3、进入下载后的WebDriverAgent文件
  4、执行 ./Scripts/bootstrap.sh
  5、在执行Xshell文件时,会报错:无 carthage 与npm
  6、brew install carthage brew install npm brew install --HEAD libimobiledevice
  7、有报这个错误的  
  是说这个文件没有权限 ,增加权限即可 :sudo chmod 755 /usr/local/lib/node_modules/appium-doctor/node_modules/appium-adb/lib/.DS_Store
 
  8、直接用Xcode打开WebDriverAgent.xcodepro文件
  9、配置TeamID 与证书 (正式的证书 需要找开发)
 
原文地址:https://www.cnblogs.com/Jaredhan/p/15693823.html