Want an easier path first? You don't have to install LLVM, CMake, or compile
spirv-crossby hand to play on iPhone or iPad: - Fastest route: Download a prebuiltv2.3.0-build.20.1community IPA (with precompiled Metal shaders already inside) directly on the iPhone & iPad Install Guide and sideload it via Sideloadly. - 2-click GUI route: Use our open-source D2R Prep Assistant v0.2.0 desktop app, which automatically sets up portable dependencies in an isolated folder and builds your IPA, Legacy Device Pack, or Androidandroid/folder with point-and-click controls. - Android route: On Windows, you can also generate an Androidv2.3.0import folder in 2 clicks — see the Android Setup Guide.Continue below only if you specifically want the manual command-line packaging workflow.
Overview
The experimental no-Xcode CLI route assembles an unsigned iOS package (.ipa) on Windows 10 or 11 without a Mac. Upstream reports an end-to-end Windows 11 packaging test, though the resulting no-Xcode IPA and signing route have not completed a site-verified iPhone/iPad physical installation test.
Instead of compiling native iOS code from scratch, you download an official pre-built clean shell package (containing zero copyrighted game content) and use dm/tools/d2rm_pack.py to inject your Switch 1.0.34.0 files, translated shaders, and UI assets into an unsigned .ipa.
Windows Requirements
Ensure the following dependencies are installed on Windows 10 or 11 (64-bit):
- Python 3.9 or later (with Add python.exe to PATH checked during installation):
cmd python -m pip install pillow numpy lz4 capstone unicorn - C Compiler & Toolchain:
- Install LLVM (providing
clangandclang++). - Install .NET 10 SDK.
- Install Git, CMake, and Ninja.
- SPIRV-Cross Compiler:
- Build SPIRV-Cross from source pinned to the tag required by your
v2.3.0source (vulkan-sdk-1.4.357.0orvulkan-sdk-1.4.363.0matchingdm/gfx/tools/dmsh_chain.lock):cmd git clone --branch vulkan-sdk-1.4.357.0 --depth 1 https://github.com/KhronosGroup/SPIRV-Cross cmake -S SPIRV-Cross -B SPIRV-Cross/build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DSPIRV_CROSS_ENABLE_TESTS=OFF cmake --build SPIRV-Cross/build --target spirv-cross - Add
SPIRV-Cross\build\(containingspirv-cross.exe) to your systemPATH. (Note: Exact SPIRV-Cross versioning is strictly required because shader translations differ across versions;d2rm_pack.pyvalidates shader source digests and halts on mismatches.) - Disk Space: Approximately 12 GB free for intermediate caches and working files.
- Game Files: Switch release
1.0.34.0(3.3.94012), dumped from your own console, containingExeFSandRomFS(see files checklist).
Step 1: Download the v2.3.0 Shell and Clone Source
- Clone the repository and check out the exact
v2.3.0tag matching your shell before packaging. An unpinned clone can drift from the shell release and fail digest checks:cmd git clone --branch v2.3.0 https://github.com/jhaizhou-ops/d2r-mobile.git cd d2r-mobile - Download the matching clean shell archive directly (these clean shells contain zero game content):
- iOS / iPadOS 26+:
D2RMobile-shell-build-input.zip - iOS / iPadOS 18–25:
D2RMobile-shell-ios18-build-input.zip - Checksums:
SHA256SUMS.txt
Step 2: Run the Packaging Tool
Execute dm/tools/d2rm_pack.py with positional arguments:
python dm/tools/d2rm_pack.py <shell.zip> <game_files_directory> <output.ipa>
Example:
python dm/tools/d2rm_pack.py D2RMobile-shell-build-input.zip C:\d2r\Update d2r-output.ipa
Argument Details
<shell.zip>: Path toD2RMobile-shell-build-input.zip(iOS 26+) orD2RMobile-shell-ios18-build-input.zip(iOS 18–25).<game_files_directory>: The directory containing bothExeFS/andRomFS/.<output.ipa>: Desired path for the generated unsigned.ipa.
What the Packager Does
- Rewrites the Switch game executable into a dynamic library.
- Extracts and generates UI assets and data tables from game files.
- Translates game shaders into Metal Shading Language (MSL) text using
spirv-cross. - Assembles the final package (approx. 130–160 MB).
- The first run takes 10–12 minutes (primarily shader translation); subsequent runs skip already-completed steps.
(Note: During shader translation, the tool updates dm/gfx/tools/dmsh_chain.lock and dm/gfx/nvn/dmsh_chain.h with local toolchain versions; this is expected behavior.)
Older Devices (A14–A16 Chips)
If packaging for an iPhone 13 Pro, iPhone 14 series, iPhone 15 / 15 Plus, or other supported A14–A16 6 GB device:
- Download ARM
astcenc5.2.0 (bin/astcenc-avx2.exefor Windows) or let D2R Prep Assistant v0.2.0 fetch and run it for you automatically. - Generate the texture pack:
cmd python dm/tools/astc_pack.py <game_files_directory>/RomFS out_dir/work --astcenc <path_to_astcenc> --preset thorough python dm/tools/casc_overlay.py pack <game_files_directory>/RomFS out_dir/pack out_dir/work/repl.tsv 0-8 python dm/tools/astc_pack.py finalize out_dir/pack - Set
D2RM_ASTC_PACKbefore packaging:cmd set "D2RM_ASTC_PACK=%CD%\out_dir\pack" python dm/tools/d2rm_pack.py <shell.zip> <game_files_directory> <output.ipa> - Copy the resulting
out_dir\pack\Legacy Device Packfolder to your phone alongsideD2R Mobile Resources.
Step 3: Sign and Sideload onto Your iOS Device
- Connect your iPhone or iPad to your PC via USB.
- Download and open Sideloadly (or AltStore).
- Drag your generated
d2r-output.ipainto the tool, enter your personal Apple ID, and click Start. - On your iOS device:
- Navigate to Settings → General → VPN & Device Management, find your developer certificate under Developer App, and tap Trust.
- Enable Developer Mode in Settings → Privacy & Security → Developer Mode and reboot if prompted.
Step 4: Transfer Game Resources
The install package does not bundle the 5.6 GB of game assets:
- Put the 18
.datafiles fromRomFS/datainsideD2R Mobile Resources/data/. - Connect your phone to your PC, open the Apple Devices app or iTunes, go to File Sharing → D2R Mobile, and copy
D2R Mobile Resourcesin (plusLegacy Device Packif on A14–A16). - Return to the app and tap Retry.
First Launch: Preparing Shaders
Because the package was assembled on Windows without Apple's Metal shader compiler:
- Upon launching, the app displays a "First launch: preparing shaders" screen with a progress bar and remaining time estimate.
- It compiles all shaders on the phone once (measured upstream at approx. 7 minutes for 7,212 shaders on an iPhone 17 Pro Max).
- The device will become warm as CPU cores run at full capacity.
- Interruption is supported: You can safely switch apps or close the game. When reopened, already-compiled shaders are verified in less than a millisecond, and compilation resumes from cache.
- Once complete, the game boots directly into the main menu. Subsequent launches skip compilation entirely.
Operational Notes
- End-to-End Test Status: Upstream verified the Windows packaging workflow on Windows 11 with Python 3.12, confirming byte-identical executable outputs compared to Mac-generated packages. Physical device installation of a Windows-packaged
v2.3.0IPA remains unverified by this guide. - Performance Expectations: In-game performance depends on device SoC and thermal limits; figures cited represent upstream test logs rather than guaranteed site benchmarks.