Run a virtual iPhone on an Apple Silicon Mac.
Swift
setup: install and document aria2c (#237)
TastyHeadphones5ab5e5b6f8ee
diff --git a/README.md b/README.mdindex 07cad634..a78725de 100644--- a/README.md+++ b/README.md@@ -87,9 +87,11 @@ Boot into Recovery (long press power button), open Terminal, then choose one set**Install dependencies:**```bash-brew install ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake+brew install aria2 ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake```+`scripts/fw_prepare.sh` prefers `aria2c` for faster multi-connection downloads and falls back to `curl` or `wget` when needed.+**Submodules** — this repo uses git submodules for resources, vendored Swift deps, and toolchain sources under `scripts/repos/`. Clone with:```bash@@ -108,7 +110,7 @@ make setup_machine # full automation through "First Boot" (includes r## Manual Setup```bash-make setup_tools # install brew deps, build trustcache + insert_dylib + libimobiledevice from submodule sources, create Python venv+make setup_tools # install brew deps (including aria2c), build trustcache + insert_dylib + libimobiledevice from submodule sources, create Python venvmake build # build + sign vphone-climake vm_new # create VM directory with manifest (config.plist)# options: CPU=8 MEMORY=8192 DISK_SIZE=64diff --git a/docs/README_ja.md b/docs/README_ja.mdindex b463a3dd..c37d92bd 100644--- a/docs/README_ja.md+++ b/docs/README_ja.md@@ -78,9 +78,11 @@ Apple の Virtualization.framework と PCC の研究用 VM インフラを使用**依存関係のインストール:**```bash-brew install ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake+brew install aria2 ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake```+`scripts/fw_prepare.sh` は高速な多重接続ダウンロードのために `aria2c` を優先し、必要に応じて `curl` または `wget` にフォールバックします。+**Submodules** — このリポジトリはリソース、Swift 依存、`scripts/repos/` 配下のツールチェーンソースに git submodule を使用しています。クローン時に以下を使用してください:```bash@@ -97,7 +99,7 @@ make setup_machine # 初回起動までを完全自動化(復元/## 手動セットアップ```bash-make setup_tools # brew の依存関係インストール、submodule ソースから trustcache + insert_dylib + libimobiledevice をビルド、Python venv の作成+make setup_tools # brew の依存関係インストール(aria2c を含む)、submodule ソースから trustcache + insert_dylib + libimobiledevice をビルド、Python venv の作成make build # vphone-cli のビルド + 署名make vm_new # VM ディレクトリとマニフェスト(config.plist)の作成# オプション:CPU=8 MEMORY=8192 DISK_SIZE=64diff --git a/docs/README_ko.md b/docs/README_ko.mdindex a95e352b..b369bc88 100644--- a/docs/README_ko.md+++ b/docs/README_ko.md@@ -78,9 +78,11 @@ PCC 리서치 VM 인프라와 Apple의 Virtualization.framework를 사용하여**의존성(Dependencies) 설치:**```bash-brew install ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake+brew install aria2 ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake```+`scripts/fw_prepare.sh` 는 더 빠른 다중 연결 다운로드를 위해 `aria2c` 를 우선 사용하고, 필요하면 `curl` 또는 `wget` 으로 폴백합니다.+**Submodules** — 이 저장소는 리소스, Swift 의존성, `scripts/repos/` 아래 툴체인 소스를 git submodule로 관리합니다. 클론 시 다음 명령어를 사용하세요:```bash@@ -97,7 +99,7 @@ make setup_machine # "First Boot"까지의 전체 과정 자동화 (## 수동 설정```bash-make setup_tools # brew 의존성 설치, submodule 소스에서 trustcache + insert_dylib + libimobiledevice 빌드, Python venv 생성+make setup_tools # brew 의존성 설치(aria2c 포함), submodule 소스에서 trustcache + insert_dylib + libimobiledevice 빌드, Python venv 생성make build # vphone-cli 빌드 및 서명make vm_new # VM 디렉토리 및 매니페스트(config.plist) 생성# 옵션: CPU=8 MEMORY=8192 DISK_SIZE=64diff --git a/docs/README_zh.md b/docs/README_zh.mdindex c7ae5f5c..c7572196 100644--- a/docs/README_zh.md+++ b/docs/README_zh.md@@ -78,9 +78,11 @@**安装依赖:**```bash-brew install ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake+brew install aria2 ideviceinstaller wget gnu-tar openssl@3 ldid-procursus sshpass keystone autoconf automake pkg-config libtool cmake```+`scripts/fw_prepare.sh` 会优先使用 `aria2c` 进行更快的多连接下载,必要时再回退到 `curl` 或 `wget`。+**Submodules** —— 本仓库通过 git submodule 管理资源、Swift 依赖以及 `scripts/repos/` 下的工具链源码。克隆时请使用:```bash@@ -99,7 +101,7 @@ make setup_machine # 完全自动化完成"首次启动"流程(包## 手动设置```bash-make setup_tools # 安装 brew 依赖、从 submodule 源码构建 trustcache + insert_dylib + libimobiledevice、创建 Python 虚拟环境+make setup_tools # 安装 brew 依赖(含 aria2c)、从 submodule 源码构建 trustcache + insert_dylib + libimobiledevice、创建 Python 虚拟环境make build # 构建并签名 vphone-climake vm_new # 创建 VM 目录及清单文件(config.plist)# 选项:CPU=8 MEMORY=8192 DISK_SIZE=64diff --git a/scripts/setup_tools.sh b/scripts/setup_tools.shindex 9ca3c154..9f682718 100644--- a/scripts/setup_tools.sh+++ b/scripts/setup_tools.sh@@ -26,7 +26,7 @@ ensure_repo_submodule() {echo "[1/5] Checking brew packages..."-BREW_PACKAGES=(gnu-tar openssl@3 ldid-procursus sshpass)+BREW_PACKAGES=(aria2 gnu-tar openssl@3 ldid-procursus sshpass)BREW_MISSING=()for pkg in "${BREW_PACKAGES[@]}"; do