Run a virtual iPhone on an Apple Silicon Mac.
Swift
Fix typo NONE_INTERACTIVE --> NON_INTERACTIVE
Gilbo3b7cf9213725
diff --git a/Makefile b/Makefileindex e8309876..3cf5bbdf 100644--- a/Makefile+++ b/Makefile@@ -55,7 +55,7 @@ help:@echo " DT identity properties, post-restore DT rewrite, opt-in build spoof)"@echo " LESS=1 Build, keeping iOS security mitigations enabled."@echo " SKIP_PROJECT_SETUP=1 Skip setup_tools/build"- @echo " NONE_INTERACTIVE=1 Auto-continue prompts + boot analysis"+ @echo " NON_INTERACTIVE=1 Auto-continue prompts + boot analysis"@echo " SUDO_PASSWORD=... Preload sudo credential for setup flow"@echo " NO_BINPACK=1 Excludes the SSH, VNC, ... binaries from being installed (patchless-only, currently)"@echo " NO_VPHONED=1 Excludes vphoned from being installed (patchless-only, currently)"@@ -146,7 +146,7 @@ setup_machine:exit 1; \fiSUDO_PASSWORD="$(SUDO_PASSWORD)" \- NONE_INTERACTIVE="$(NONE_INTERACTIVE)" \+ NON_INTERACTIVE="$(NON_INTERACTIVE)" \NO_BINPACK="$(NO_BINPACK)" \NO_VPHONED="$(NO_VPHONED)" \SPOOF_BUILD="$(SPOOF_BUILD)" \diff --git a/README.md b/README.mdindex 73a76dab..0fa781ff 100644--- a/README.md+++ b/README.md@@ -116,7 +116,7 @@ git clone --recurse-submodules https://github.com/Lakr233/vphone-cli.git```bashmake setup_machine # full automation through "First Boot" (includes restore/ramdisk/CFW)-# options: NONE_INTERACTIVE=1 SUDO_PASSWORD=...+# options: NON_INTERACTIVE=1 SUDO_PASSWORD=...# LESS=1 for patchless variant (- AMFI, SSV, Img4, TXM bypasses)# DEV=1 for dev variant (+ TXM entitlement/debug bypasses)# JB=1 for jailbreak variant (+ full security bypass)diff --git a/docs/README_ja.md b/docs/README_ja.mdindex 9f50c056..91c64bbc 100644--- a/docs/README_ja.md+++ b/docs/README_ja.md@@ -104,7 +104,7 @@ git clone --recurse-submodules https://github.com/Lakr233/vphone-cli.git```bashmake setup_machine # 初回起動までを完全自動化(復元/ラムディスク/CFWを含む)-# オプション:NONE_INTERACTIVE=1 SUDO_PASSWORD=...+# オプション:NON_INTERACTIVE=1 SUDO_PASSWORD=...# LESS=1 で patchless バリアント(- AMFI, SSV, Img4, TXM バイパス)# DEV=1 で開発バリアント(+ TXM entitlement/デバッグバイパス)# JB=1 で脱獄バリアント(dev + 完全セキュリティバイパス)diff --git a/docs/README_ko.md b/docs/README_ko.mdindex b5a85334..b48699cc 100644--- a/docs/README_ko.md+++ b/docs/README_ko.md@@ -104,7 +104,7 @@ git clone --recurse-submodules https://github.com/Lakr233/vphone-cli.git```bashmake setup_machine # "First Boot"까지의 전체 과정 자동화 (복원/Ramdisk/커스텀 펌웨어 포함)-# 옵션: NONE_INTERACTIVE=1 SUDO_PASSWORD=...+# 옵션: NON_INTERACTIVE=1 SUDO_PASSWORD=...# LESS=1 Patchless 변형 (- AMFI, SSV, Img4, TXM 우회)# DEV=1 개발 변형 (+ TXM 권한/디버그 우회)# JB=1 탈옥 변형 (dev + 전체 보안 우회)diff --git a/docs/README_zh.md b/docs/README_zh.mdindex a44c828d..c8634978 100644--- a/docs/README_zh.md+++ b/docs/README_zh.md@@ -104,7 +104,7 @@ git clone --recurse-submodules https://github.com/Lakr233/vphone-cli.git```bashmake setup_machine # 完全自动化完成"首次启动"流程(包含 restore/ramdisk/CFW)-# 选项:NONE_INTERACTIVE=1 SUDO_PASSWORD=...+# 选项:NON_INTERACTIVE=1 SUDO_PASSWORD=...# LESS=1 patchless 变体(- AMFI、SSV、Img4、TXM 绕过)# DEV=1 开发变体(+ TXM 权限/调试绕过)# JB=1 越狱变体(dev + 完整安全绕过)diff --git a/research/0_binary_patch_comparison.md b/research/0_binary_patch_comparison.mdindex 0f444530..44ae0c63 100644--- a/research/0_binary_patch_comparison.md+++ b/research/0_binary_patch_comparison.md@@ -755,7 +755,7 @@ cache rebuild.- dev: all 7 component payloads match- jb: all 7 component payloads match- Runtime validation blocker observed on 2026-03-10:- - `NONE_INTERACTIVE=1 SKIP_PROJECT_SETUP=1 make setup_machine JB=1` reaches the Swift patch stage and reports `[patch-firmware] applied 154 patches for jb`, then fails when the flow transitions into `make boot_dfu`.+ - `NON_INTERACTIVE=1 SKIP_PROJECT_SETUP=1 make setup_machine JB=1` reaches the Swift patch stage and reports `[patch-firmware] applied 154 patches for jb`, then fails when the flow transitions into `make boot_dfu`.- `make boot_dfu` originally failed at launch-policy time with exit `137` / signal `9` because the release `vphone-cli` could not launch on this host.- `amfidont` was then validated on-host:- it can attach to `/usr/libexec/amfid`diff --git a/scripts/setup_machine.sh b/scripts/setup_machine.shindex 33d827a4..e2f48977 100755--- a/scripts/setup_machine.sh+++ b/scripts/setup_machine.sh@@ -54,8 +54,8 @@ BOOT_PROMPT_FALLBACK_TIMEOUT="${BOOT_PROMPT_FALLBACK_TIMEOUT:-60}"BOOT_BASH_PROMPT_REGEX="${BOOT_BASH_PROMPT_REGEX:-bash-[0-9]+(\.[0-9]+)+#}"BOOT_PANIC_REGEX="${BOOT_PANIC_REGEX:-(^|[^p])(panic|kernel panic|panic\\.apple\\.com|stackshot succeeded)}"PMD3_BRIDGE="${PMD3_BRIDGE:-${PROJECT_ROOT}/scripts/pymobiledevice3_bridge.py}"-NONE_INTERACTIVE_RAW="${NONE_INTERACTIVE:-0}"-NONE_INTERACTIVE=0+NON_INTERACTIVE_RAW="${NON_INTERACTIVE:-0}"+NON_INTERACTIVE=0NO_BINPACK_RAW="${NO_BINPACK:-0}"NO_BINPACK=0NO_VPHONED_RAW="${NO_VPHONED:-0}"@@ -987,7 +987,7 @@ Options:--skip-project-setup Skip setup_tools/build stage.Environment:- NONE_INTERACTIVE=1 Auto-continue first-boot prompts + run final boot analysis.+ NON_INTERACTIVE=1 Auto-continue first-boot prompts + run final boot analysis.SUDO_PASSWORD=... Preload sudo credential via askpass.NO_BINPACK=1 Excludes the SSH, VNC, ... binaries from being installed (patchless-only, currently)NO_VPHONED=1 Excludes vphoned from being installed (patchless-only, currently)@@ -1005,8 +1005,8 @@ EOFmain() {parse_args "$@"- if parse_bool "$NONE_INTERACTIVE_RAW"; then- NONE_INTERACTIVE=1+ if parse_bool "$NON_INTERACTIVE_RAW"; then+ NON_INTERACTIVE=1fiif parse_bool "$NO_BINPACK_RAW"; thenNO_BINPACK=1@@ -1042,7 +1042,7 @@ main() {mode_label="less"fi- echo "[*] setup_machine mode: ${mode_label}, project_setup=$([[ "$SKIP_PROJECT_SETUP" -eq 1 ]] && echo "skip" || echo "run"), non_interactive=${NONE_INTERACTIVE}, no_binpack=${NO_BINPACK}, no_vphoned=${NO_VPHONED}"+ echo "[*] setup_machine mode: ${mode_label}, project_setup=$([[ "$SKIP_PROJECT_SETUP" -eq 1 ]] && echo "skip" || echo "run"), non_interactive=${NON_INTERACTIVE}, no_binpack=${NO_BINPACK}, no_vphoned=${NO_VPHONED}"if [[ "$SKIP_PROJECT_SETUP" -eq 1 ]]; thenecho ""@@ -1104,15 +1104,15 @@ main() {if [[ "$LESS_MODE" -eq 0 || "$NO_BINPACK" -eq 0 ]]; thenecho ""echo "=== First boot ==="- if [[ "$NONE_INTERACTIVE" -eq 0 ]]; then+ if [[ "$NON_INTERACTIVE" -eq 0 ]]; thenread -r "?[*] press Enter to start VM, after the VM has finished booting, press Enter again to finish last stage"else- echo "[*] NONE_INTERACTIVE=1: auto-starting first boot"+ echo "[*] NON_INTERACTIVE=1: auto-starting first boot"fistart_first_boot- if [[ "$NONE_INTERACTIVE" -eq 0 ]]; then+ if [[ "$NON_INTERACTIVE" -eq 0 ]]; thenread -r "?[*] Press Enter once the VM is fully booted"elsewait_for_first_boot_prompt_auto