跳到正文
Skillpedia
移动应用16k · #10801

vphone-guest-control

它能做什么

这个技能向你的智能体展示如何安装 vphone、创建虚拟 iPhone,并向正在运行的虚拟 iPhone 发送命令。适合在 Mac 上测试 iPhone 应用的人。

适用场景

  • ✓当你想在 Mac 上创建或启动一台虚拟 iPhone 时。
  • ✓当你需要向已经运行的虚拟 iPhone 发送命令时。
  • ✓当你想检查 vphone 是否已安装并可以使用时。

技能链接

https://github.com/Lakr233/vphone-cli/blob/main/Skills/vphone-guest-control/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Lakr233/vphone-cli/blob/main/Skills/vphone-guest-control/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的 vphone 设置是否就绪,并为我启动一台虚拟 iPhone。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会运行 vphone 命令行客户端,它会与已经打开的 vphone 应用通信。它会先检查状态,并告诉你缺少什么,例如只有你自己才能完成的设置步骤。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Driving vphone

vphone runs a virtual iPhone on an Apple Silicon Mac through Virtualization.framework. Two pieces matter to you:

Piece Role
vphone-launchpad (Mac app) Downloads and verifies VPhone.bundle, creates machines, runs them. Owns the only root helper.
vphone-launchpad-cli A stateless client of the running app. Every command also appears in the app's window and history.

Use vphone-launchpad-cli for everything. The app does the privileged and signed work for you; a second route (sudo, a copy of vphone-cli, devicectl) either lacks the entitlements, bypasses the checks the app records, or times out against these guests.

How a session should go

  1. Find out where the user is. Run vphone-launchpad-cli status. If the command does not exist, go to install. Otherwise the JSON tells you the next step:

    • canInstallBundles: false or helper not ready: the user must finish Host Setup in the app (administrator password, Developer Tools access). You cannot do this for them; say exactly what is missing.
    • defaultBundle: null or bundleReady: false: install or verify a bundle. Each machine runs with its own bundle (vm list → bundle); the default only decides what new machines get.
    • machines: 0: create one (machines).
    • Otherwise: list machines, start the one the user named, then control it.
  2. Pick the reference for the task, and read it before acting.

    Task Read
    Install Launchpad or a bundle, host requirements, series matching references/install.md
    An install step failed: "damaged", Developer Tools access turns off, several macOS installations, zsh: killed, not Apple silicon references/install-faq.md
    Create, start, stop, retry, update a machine, change its Core Bundle references/machines.md
    Tap, swipe, key, screenshot, anything on vphone.sock references/guest-socket.md
    Call a vphoned method: apps, files, logs, UI tree, processes references/rpc-methods.md
    Installing an IPA references/rpc-methods.md
    roothide vs rootless, installing the bootstrap, ssh, /rootfs, handing files to vphoned, .deb references/guest-layout.md
    Black screen, timeouts, AMFI, "客体代理未连接" references/troubleshooting.md
    A symptom the above does not cover; which research note or source explains it references/finding-docs.md
  3. Verify with the guest, not with assumptions. After an input, take a screenshot or read ui.describe; after a launch, check apps.foreground. The guest is a real device with timing, so a command that returned ok has not necessarily produced the visible result.

Output and errors

  • Progress lines go to stderr as they arrive. The result is one JSON document on stdout. Exit 0 is success; exit 1 is failure with the reason on stderr. Parse stdout, and read stderr when the exit code is 1.
  • vphone-launchpad-cli help prints every command with its options and is authoritative if this skill and the installed version disagree.
  • Quote JSON in single quotes: guest rpc myphone apps.launch '{"bundle_id":"com.apple.Preferences"}'.
  • Interrupting the CLI cancels exec, waits and CFW install. A bundle install or a machine creation belongs to the app window and keeps going, so do not start a second one because the CLI went quiet; run vm log <name> --kind create.
  • Pass --root <library> only when two libraries hold a machine with the same name; the error lists the libraries.

Rules that save the user's machine

These exist because each one has cost the user real time or disk before.

  • Use the machines the user named. Do not vm create to reproduce a problem; diagnose on the existing guest. A creation takes tens of GB and several restarts, and a half-built machine is harder to clean up than the bug.
  • Creating is one at a time, after checking free disk. IPSWs plus the restore tree are large, and a full disk fails halfway with confusing errors.
  • Never change host security settings (SIP, boot-args, AMFI, Research Guests) and never run
常见问题

需要 Apple Silicon 的 Mac 吗?

该技能说明 vphone 运行在 Apple Silicon 的 Mac 上,因此这是它所期望的设置。

智能体能独自完成设置吗?

不一定。有些步骤需要在应用中输入管理员密码,必须由你自己输入。

我需要使用命令行吗?

该技能使用命令行客户端,但每条命令也会出现在应用窗口和历史记录中。

详情

作者的原始描述

Install vphone-launchpad and VPhone.bundle, create and run vphone virtual iPhones, and drive a running guest from the command line with vphone-launchpad-cli and the per-machine vphone.sock. Make sure to use this skill whenever the user mentions vphone, vphone-launchpad, vphone-launchpad-cli, VPhone.bundle, vphoned, vphone.sock, or a virtual iPhone on their Mac, even if they do not name the tool. That includes setting vphone up, creating/starting/stopping a machine, tapping/swiping/typing/taking screenshots in the guest, calling a vphoned method (apps, files, logs, processes, UI tree), installi

repo: Lakr233/vphone-cli

热度

GitHub 星标
16k
排名
#10801
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

相似技能