macOS target ก่อน —> เสร็จแล้วค่อย iOS —> sideload ลง iPad ของคุณ. ไม่ต้อง Jailbreak. ไม่ต้อง Apple Developer (free ก็ได้ถ้า sideload ในเครื่องตัวเอง).
ติดตั้ง toolchain ให้ครบก่อน:
xcode-select --install brew install cmake ninja meson pkg-config
git clone https://github.com/microsoft/vcpkg ~/vcpkg && ~/vcpkg/bootstrap-vcpkg.sh export VCPKG_ROOT=~/vcpkg
brew tap lunarg/lunarg && brew install lunarg/lunarg/vulkan-sdk export VULKAN_SDK=$HOME/VulkanSDK/<version>/macOS
open https://store.steampowered.com/app/2732960/ # ~$5 (often on sale)
The fetch script pulls .big archives from your Steam install — you must own the game.
git clone https://github.com/ammaarreshi/Generals-Mac-iOS-iPad.git GeneralsX cd GeneralsX ./scripts/build/macos/build-macos-zh.sh # checks deps, configures, builds
./scripts/build/macos/deploy-macos-zh.sh # creates ~/GeneralsX/GeneralsZH + run.sh cd ~/GeneralsX/GeneralsZH && ./run.sh -win
First run pulls assets from your Steam install. Subsequent runs use the cache.
cd GeneralsX git submodule update --init references/fbraz3-dxvk ./scripts/build/ios/fetch-moltenvk.sh # pinned MoltenVK.framework
cmake --preset ios-vulkan cmake --build build/ios-vulkan --target z_generals
Xcode → Settings → Accounts. Look for Team ID — it's an alphanumeric string.
GX_TEAM_ID=<your-team-id> GX_BUNDLE_ID=com.YOU.generalszh \ ./scripts/build/ios/package-ios-zh.sh --install
Open Generals ZH on your iPad, drop your Steam assets into the Files app share (or install via Xcode), campaign + skirmish + challenge all work.
Tap = select · drag = box-select · long-press = deselect · 2-finger pan · pinch zoom