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 從公開儲存庫中收錄這些內容。

檢舉或申請下架