welldum 2019-06-30
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm -v
rvm list known rvm install 2.6.0 #等待下载(途中需要按回车确定安装路径、还要输入密码)、编译。完成之后Ruby、Ruby Gems就安装好了
rvm list
rvm remove [旧版本号] rvm 2.6.0 -default rvm -v gem -v
gem sources -l #检测ruby源 gem sources --remove https://rubygems.org/ #移除ruby源(根据检测结果) gem sources --add https://gems.ruby-china.com
至此,ruby安装完成
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install libimobiledevice --HEAD
brew install carthage brew install node brew install npm
npm install -g ios-deploy gem install xcpretty
从GitHub下载appium-xxx.dmg,安装 npm install -g appium-doctor appium-doctor --ios
至此,已完成appium-desktop及其依赖相关安装
到github下载最新版本的[WebDriverAgent][1] cd 进入下载后的WebDriverAgent文件 执行 ./Scripts/bootstrap.sh 执行成功后 移动到appium安装目录的appium-xcuitest-driver目录下,删除旧WebDriverAgent目录 即: sudo rm -rf WebDriverAgent ln -s ~/WebDriverAgent将编译好的WebDriverAgent移动到appium-xcuitest-driver目录 ####其实此时应已经可以使用appium-desktop 直接用Xcode打开WebDriverAgent.xcodepro文件 配置WebDriverAgentLib和WebDriverAgentRunner的证书 连接并选择自己的iOS设备,然后按Cmd+U,或是点击Product->Test
解决方法:ruby-china源域名已更换,为https://gems.ruby-china.com,而非org
Error Message:Requested 'libusbmuxd >= 1.1.0' but version of libusbmuxd is 1.0.10
解决办法:
brew uninstall --ignore-dependencies libimobiledevice brew uninstall --ignore-dependencies usbmuxd ##以上执行失败均无关系 brew unlink usbmuxd brew install --HEAD usbmuxd brew link usbmuxd #执行以上命令后,重新执行以下命令可成功安装 brew install libimobiledevice --HEAD
错误信息:xcode-select:error:tool 'xcodebuild requires Xcode
解决方法:切换xcode路径的方法为:sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer(xcode路径)
解决办法:
安装opencv4nodejs: 1. 使用npm代替brew: brew install cmake npm install -g opencv4nodejs 2. 安装fbsimctl: brew tap facebook/fb brew install fbsimctl 3. 安装applesimutil: brew tap wix/brew brew install applesimutil