vphone-cli README

项目的 README,来自 github.com/Lakr233/vphone-cli。合并为一个 markdown 文件:README.md。

Docs · English · 中文 · 日本語 · 한국어

vphone-cli

Run a virtual iPhone on an Apple Silicon Mac.

[!WARNING] This project has never issued or authorized any cryptocurrency or token, and does not accept cryptocurrency payments or donations. Any cryptocurrency or token issued or promoted in this project's name, or claiming any affiliation with it, is a scam.

Virtual iPhone running on macOS

vphone-cli runs iOS with Apple's Virtualization.framework and PCC research virtual machines, for security research, reverse engineering, and debugging.

Documentation

Everything else lives on the documentation site: https://lakr233.github.io/vphone-cli/

The sources of the site are in Documents/ and Research/.

Let an Agent Install It

If you use a coding agent (Claude Code, Codex, or similar) on this Mac, paste the prompt below instead of following the steps by hand. The agent reads the vphone skill, checks what is already set up, installs Launchpad and VPhone.bundle, and stops to ask when a step needs you, such as an administrator password or a change in macOS Recovery.

Set up vphone on this Mac. Read the skill at
https://raw.githubusercontent.com/Lakr233/vphone-cli/main/Skills/vphone-guest-control/SKILL.md
and the files it links under references/ (same folder), then follow them:
install the newest notarized vphone-launchpad (not every release has a
-notarized zip), put vphone-launchpad-cli on PATH, install the VPhone.bundle
that matches Launchpad's series, and check `vphone-launchpad-cli status`.
Do not change SIP, boot-args or any other host security setting, and do not
create a machine until I confirm the firmware and the free disk space. When a
step needs me, tell me exactly what to do and wait.

Acknowledgements

License

vphone-cli is released under the MIT License.

vphone-cli (Lakr233/vphone-cli)

正在搜索数据库…

这是什么?vphone-cli 借助 Apple 的 Virtualization.framework 在 Mac 上启动一台虚拟 iPhone,它基于 Apple 的 PCC 研究虚拟机基础设施构建,让你无需实体设备就能运行、测试,甚至越狱 iOS。
这是图形界面应用还是命令行工具?它是一个命令行工具,带有多个子命令,可自动完成虚拟 iPhone 的完整流程(下载、打补丁、DFU 恢复、CFW 安装、首次启动),之后你可以通过 SSH 或 VNC 连接它。
怎样才能让虚拟 iPhone 跑起来?运行 'vphone-cli vm create',它会自动执行整个流程;你也可以手动运行各个 'fw prepare' 和构建步骤,自己控制每一个阶段。
运行之前,宿主 Mac 上需要准备什么?一台 Apple Silicon Mac,系统为 macOS 15(Sequoia)或更高版本;安装 Xcode 和 iOS SDK 用于交叉编译客户机守护进程;并且要关闭 SIP/AMFI,使未签名的二进制文件能够使用私有的 PV=3 权限。
如果我的 Mac 本身就是虚拟机,还能用吗?不能。PV=3 客户机无法嵌套启动,因此你需要一台非嵌套的 macOS 15+ 宿主机;在 iOS 设置过程中还需避开选择日本或欧盟地区;另外,已知的 ldid-procursus 缺陷可能会导致 CFW 安装卡住,直到从源码重新构建 ldid 为止。
固件补丁有哪些版本?共有五个版本(less、regular、dev、jb、exp),它们在补丁数量与绕过深度之间有所取舍:'less' 保留了 iOS 的各项防护措施,'exp' 则增加了完整的越狱功能以及反虚拟机检测的研究性补丁。
如何连接正在运行的虚拟 iPhone?通过 22222 端口使用 SSH 连接(越狱版本用 mobile@,普通版和 dev 版用 root@),或通过 5901 端口使用 VNC 查看屏幕;右键操作相当于用两根手指轻点主屏幕按钮。
能否用脚本自动化控制虚拟 iPhone?可以。vphone-cli 提供了一个宿主机控制套接字,可用于截图、触控、滑动、硬件按键和剪贴板操作;配套的 vphone-mcp 项目则将其封装为 MCP 服务器,用于由 AI 驱动的端到端测试。
vphone-cli 把虚拟机和下载的固件存放在哪里?所有内容都保存在 ~/.vphone/ 下(包括虚拟机包、缓存的 IPSW、工具、.deb 软件包,以及自动配置好的 Python 虚拟环境),也可以通过 $VPHONEROOT 及相关环境变量修改存放位置。
有哪些类似的项目?vphone-aio, cua, wslmanager, AirCard, UTM, steamac, darwin-vm, tart
作者
Lakr233
大小
58.3 MB
星标
16.7K
时长
9个月
提交 · 90 天