参考文章 写给iOS开发的跳一跳秘籍 ATX 文档 - iOS 真机如何安装 WebDriverAgent Xcode中Command Line Tools安装方法
###效果图
)
###1、下载资源 将wechat_jump_game和WebDriverAgent下载至本地并解压。
###2、安装WebDriverAgentRunner
######1)cd至/WebDriverAgent-master文件夹
cd **** /WebDriverAgent-master
######2)安装Carthage
brew install carthage
######3)Xcode中Command Line Tools安装方法 Xcode中Command Line Tools安装方法 ######4)安装WebDriverAgentRunner
./Scripts/bootstrap.sh
###2、安装Python 进入www.python.org如下图所示操作
###3、安装facebook-wda
1)如果下载的是Python3,执行
pip3 install --pre facebook-wda
2)如果下载的是Python2,执行
pip install --pre facebook-wda
###4、配置使用WebDriverAgentRunner ATX 文档 - iOS 真机如何安装 WebDriverAgent
1)执行命令
iproxy 8100 8100
###5、安装Python依赖库
######1)cd至/wechat_jump_game文件夹
cd **** /wechat_jump_game
######2)安装Python依赖库
pip3 install -r requirements.txt
###6、运行Python
######1)配置config.json
拷贝 ./config/iPhone 目录下对应的设备配置文件(如是iPhone 8p 则是8P_7P_6sP_6P_config.json),重命名为config.json,并拷贝到一级目录
######2)使用IDE打开wechat_jump_auto_iOS文件,并运行即可自动跳