添加docs,完善IOS的Readme
This commit is contained in:
47
README.md
47
README.md
@@ -105,52 +105,11 @@ ADB 调试能力,可通过 WiFi 或网络连接设备,实现灵活的远程
|
||||
|
||||
## iPhone 环境准备
|
||||
|
||||
### 1. Python 环境
|
||||
如果你使用的是 iPhone 设备,请参考专门的 iOS 配置文档:
|
||||
|
||||
建议使用 Python 3.10 及以上版本。
|
||||
📱 [iOS 环境配置指南](docs/ios_setup/ios_setup.md)
|
||||
|
||||
### 2. 设置 WebDriverAgent
|
||||
|
||||
WebDriverAgent 是 iOS 自动化的核心组件,需要在 iOS 设备上运行。
|
||||
|
||||
注意:需要提前安装好Xcode、并注册好苹果开发者账号(不需要付费)
|
||||
|
||||
#### 1. 克隆 WebDriverAgent
|
||||
|
||||
```bash
|
||||
|
||||
git clone https://github.com/appium/WebDriverAgent.git
|
||||
cd WebDriverAgent
|
||||
```
|
||||
在 Xcode 中打开WebDriverAgent.xcodeproj
|
||||
|
||||
#### 2. 设置 Signing & Capabilities
|
||||
|
||||

|
||||
|
||||
把Bundle ID改成 YOUR_NAME.WebDriverAgentRunner。
|
||||
|
||||
#### 3. 开始UI测试
|
||||
|
||||
需要在Finder勾选过“在WiFi中显示这台iPhone”,且Mac与iPhone处于同一WiFi网络之下,可以不用连接数据线,即可在设备中选择到。
|
||||
|
||||
**注意:** 不建议插数据线运行,因为插数据线还必须要同时运行iproxy才可以把端口映射出来,不及直接WiFi运行稳定。
|
||||
|
||||
先从项目Target选择WebDriverAgentRunner,然后再选择你的设备。
|
||||
|
||||

|
||||
|
||||
选好后,长按"▶️"运行按钮选择“Test”后开始编译并部署到你的iPhone上。
|
||||
|
||||

|
||||
|
||||
这时需要你在iPhone上输入解锁密码,在设置 -> 通用 -> VPN与设备管理 中信任开发者App,还需要在 设置 -> 开发者 中,打开UI自动化设置。
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||

|
||||
该文档详细介绍了如何配置 WebDriverAgent 和 iPhone 设备,以便在 iOS 上使用 AutoGLM。
|
||||
|
||||
## 部署准备工作
|
||||
|
||||
|
||||
Reference in New Issue
Block a user