添加docs,完善IOS的Readme

This commit is contained in:
floatingstarZ
2025-12-20 22:12:53 +08:00
parent 1ab6e1edf6
commit ab66e47906
9 changed files with 137 additions and 44 deletions

View File

@@ -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
![设置签名](resources/setup-xcode-wda.png)
把Bundle ID改成 YOUR_NAME.WebDriverAgentRunner。
#### 3. 开始UI测试
需要在Finder勾选过“在WiFi中显示这台iPhone”且Mac与iPhone处于同一WiFi网络之下可以不用连接数据线即可在设备中选择到。
**注意:** 不建议插数据线运行因为插数据线还必须要同时运行iproxy才可以把端口映射出来不及直接WiFi运行稳定。
先从项目Target选择WebDriverAgentRunner然后再选择你的设备。
![选择设备](resources/select-your-iphone-device.png)
选好后,长按"▶️"运行按钮选择“Test”后开始编译并部署到你的iPhone上。
![信任设备](resources/start-wda-testing.png)
这时需要你在iPhone上输入解锁密码在设置 -> 通用 -> VPN与设备管理 中信任开发者App还需要在 设置 -> 开发者 中打开UI自动化设置。
![信任设备](resources/trust-dev-app.jpg)
![启用UI自动化](resources/enable-ui-automation.jpg)
该文档详细介绍了如何配置 WebDriverAgent 和 iPhone 设备,以便在 iOS 上使用 AutoGLM。
## 部署准备工作