Argent Ios Device Setup

作者 software-mansioncb0f538ad083无许可证收录于 2026年10月8日更新于 2026年10月8日

Set up a cabled physical iPhone for argent. Use when a physical iPhone is involved (a list-devices iOS entry with kind "device") and ONLY then; never for a simulator.

AI 生成的概览

指导如何为 argent 首次设置通过数据线连接的实体 iPhone。

功能
该技能说明如何为 argent 准备一台通过数据线连接且已解锁的实体 iPhone:开启开发者模式、确认设备显示为已连接,并说明首次调用 describe、手势或 screenshot 时会构建、签名并启动设备端 runner。它解释了首次安装时需信任开发者、必须保留的 ArgentRunner 应用,以及签名如何选择团队并可用 ARGENT_IOS_TEAM_ID 覆盖。它还列出常见的连接线、锁定、信任、描述文件、证书和 xcodebuild 失败及其修复方法和日志位置。
适用场景
当涉及实体 iPhone 时使用,尤其是 list-devices 中出现 kind 为 "device" 的 iOS 条目时。不适用于模拟器,模拟器应使用单独的模拟器设置技能。
运行要求
需要一台通过数据线连接且已开启开发者模式的实体 iPhone,以及 argent 工具(list-devices、launch-app、describe、手势、screenshot、stop-simulator-server)。签名可选使用工具服务器环境变量 ARGENT_IOS_TEAM_ID,排查问题可能需要 macOS security 命令并访问 ~/.argent/ios-device-runner/logs。不附带脚本,仅为说明文档。

Physical iPhone setup

Read this only for a physical iPhone. Simulators use argent-ios-simulator-setup.

First run

  1. Cable the phone, unlock it, keep the screen awake, and turn on Developer Mode (Settings > Privacy & Security > Developer Mode). list-devices must show it connected.
  2. launch-app only registers the app. The first describe, gesture or screenshot builds, signs and starts the on-device runner: minutes cold, tens of seconds from cache or after a tool-server restart. Build cap 15 min, runner ready 120 s.
  3. On the first install the phone asks to trust the developer (Settings > General > VPN & Device Management), and an ArgentRunner app appears on the home screen. Tell the user it is argent's automation runner and must stay installed.

Signing and failures

Signing needs no configuration. The first phone call of a tool-server process carries a note naming the team picked and the ARGENT_IOS_TEAM_ID override (tool-server environment; a change forces a cold rebuild). Cable, lock, trust, expired-profile and missing-certificate errors name their fix: apply it, retry the same call. Also: errSecInternalComponent: run security set-key-partition-list -S apple-tool:,apple:,codesign: -s ~/Library/Keychains/login.keychain-db (asks the user's login password), retry. team has no devices: keep the phone cabled, retry. Bundle id registration failed: free-team app-id cap, wait days or sign under a paid team. Any other xcodebuild failure prints raw error: lines: read ~/.argent/ios-device-runner/logs/runner-<udid8>.log. RUNNER_WEDGED: stop-simulator-server for the udid, retry.

Then read argent-ios-device-interact.

来源与署名

来源:software-mansion/argent位于packages/skills/skills/argent-ios-device-setup提交cb0f538

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架