Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Add the dlopen probe for launcher route C (the gate docs/ROADMAP.md section 6 names)

seedds8e34304c5979
diff --git a/dm/ios/probe/.gitignore b/dm/ios/probe/.gitignore
new file mode 100644
index 00000000..a8ad17b6
--- /dev/null
+++ b/dm/ios/probe/.gitignore
@@ -0,0 +1,2 @@
+# The build_probe.sh staging tree and the IPA self-check extraction (rebuild with build_probe.sh)
+build/
diff --git a/dm/ios/probe/build_probe.sh b/dm/ios/probe/build_probe.sh
new file mode 100755
index 00000000..593d7922
--- /dev/null
+++ b/dm/ios/probe/build_probe.sh
@@ -0,0 +1,112 @@
+#!/bin/bash
+# Build the dlopen probe (docs/probe-dlopen.md) into an ad-hoc signed IPA with plain clang and
+# hand-written Info.plists, no Xcode project: DmProbe.app tries to dlopen the Probe.framework beside
+# its own executable and to call probe_answer() in it, logging every step to Documents/probe-log.txt
+# on the phone (also shown on the screen). The sideloader (AltStore / Sideloadly / i4Tools) re-signs
+# the app and the nested framework on install; the ad-hoc signature here is the placeholder the repo
+# ships in every IPA (the same order build_ipa.sh uses: nested code first, then the bundle).
+# Usage: dm/ios/probe/build_probe.sh [out.ipa] (default: <repo>/probe-out/DmProbe.ipa)
+# Self-checks: codesign verifies the framework and the app inside the build tree and again inside the
+# extracted IPA; the load commands carry the rpath and the install name; the deployment target is 26.0;
+# both binaries are arm64; both Info.plists lint.
+set -u
+cd "$(dirname "$0")" || exit 1
+P=$PWD; REPO=$(cd ../../.. && pwd)
+t() { echo "[$(date +%T)] $*"; }; die() { t "FAIL: $*"; exit 1; }
+OUT=${1:-$REPO/probe-out/DmProbe.ipa}
+APP=build/pkg/Payload/DmProbe.app
+TARGET=arm64-apple-ios26.0
+
+rm -rf build/pkg && mkdir -p "$APP/Frameworks/Probe.framework" || die "mkdir $APP"
+
+t "compile Probe.framework (arm64 iOS, install_name @rpath/Probe.framework/Probe)"
+xcrun -sdk iphoneos clang -arch arm64 -target "$TARGET" -Oz -Wall -dynamiclib \
+ -install_name @rpath/Probe.framework/Probe \
+ src/probe.c -o "$APP/Frameworks/Probe.framework/Probe" || die "clang Probe.framework"
+
+t "compile the DmProbe shell app (rpath @executable_path/Frameworks)"
+xcrun -sdk iphoneos clang -arch arm64 -target "$TARGET" -O2 -Wall -fobjc-arc \
+ -framework Foundation -framework UIKit \
+ -Wl,-rpath,@executable_path/Frameworks \
+ src/probe_main.m -o "$APP/DmProbe" || die "clang DmProbe"
+
+cat > "$APP/Frameworks/Probe.framework/Info.plist" <<'EOF'
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleExecutable</key><string>Probe</string>
+ <key>CFBundleIdentifier</key><string>org.nxnative.DmProbe.Probe</string>
+ <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
+ <key>CFBundleName</key><string>Probe</string>
+ <key>CFBundlePackageType</key><string>FMWK</string>
+ <key>CFBundleShortVersionString</key><string>1.0</string>
+ <key>CFBundleVersion</key><string>1</string>
+ <key>MinimumOSVersion</key><string>26.0</string>
+</dict>
+</plist>
+EOF
+
+# UIFileSharingEnabled: the Files app shows Documents/, so probe-log.txt can be read and shared
+# on the phone; LSSupportsOpeningDocumentsInPlace opens it in place. No icons: a blank home-screen
+# icon is fine for a probe (the repo's unsigned IPAs have none either).
+cat > "$APP/Info.plist" <<'EOF'
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key><string>en</string>
+ <key>CFBundleDisplayName</key><string>DmProbe</string>
+ <key>CFBundleExecutable</key><string>DmProbe</string>
+ <key>CFBundleIdentifier</key><string>org.nxnative.DmProbe</string>
+ <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
+ <key>CFBundleName</key><string>DmProbe</string>
+ <key>CFBundlePackageType</key><string>APPL</string>
+ <key>CFBundleShortVersionString</key><string>1.0</string>
+ <key>CFBundleSupportedPlatforms</key><array><string>iPhoneOS</string></array>
+ <key>CFBundleVersion</key><string>1</string>
+ <key>LSRequiresIPhoneOS</key><true/>
+ <key>LSSupportsOpeningDocumentsInPlace</key><true/>
+ <key>MinimumOSVersion</key><string>26.0</string>
+ <key>UIFileSharingEnabled</key><true/>
+ <key>UILaunchScreen</key><dict/>
+ <key>UIRequiredDeviceCapabilities</key><array><string>arm64</string></array>
+ <key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string></array>
+</dict>
+</plist>
+EOF
+
+t "ad-hoc sign (nested framework first, then the bundle)"
+xattr -cr "$APP" 2>/dev/null # Finder information or resource forks on copied files: codesign refuses them
+codesign --force --sign - "$APP/Frameworks/Probe.framework" || die "codesign Probe.framework"
+codesign --force --sign - "$APP" || die "codesign DmProbe.app"
+
+t "self-check the built bundle"
+codesign -vvv --verify --strict "$APP/Frameworks/Probe.framework" >/dev/null || die "verify the framework signature"
+codesign -vvv --verify --strict "$APP" >/dev/null || die "verify the app signature (covers the nested framework)"
+[ -z "$(codesign -d --entitlements :- "$APP" 2>/dev/null)" ] || die "the probe embeds no entitlements, yet its signature carries some"
+plutil -lint "$APP/Info.plist" "$APP/Frameworks/Probe.framework/Info.plist" >/dev/null || die "plutil"
+lipo -info "$APP/DmProbe" "$APP/Frameworks/Probe.framework/Probe" | sed 's/^/ /'
+otool -l "$APP/Frameworks/Probe.framework/Probe" | grep -A3 LC_ID_DYLIB | sed 's/^/ /'
+otool -l "$APP/DmProbe" | grep -A3 LC_RPATH | sed 's/^/ /'
+otool -l "$APP/DmProbe" | grep -A4 LC_BUILD_VERSION | sed 's/^/ /'
+grep -qx '@executable_path/Frameworks' <(otool -l "$APP/DmProbe" | awk '/LC_RPATH/,/^$/{print $2}') || die "no LC_RPATH @executable_path/Frameworks in DmProbe"
+grep -qx '@rpath/Probe.framework/Probe' <(otool -l "$APP/Frameworks/Probe.framework/Probe" | awk '/LC_ID_DYLIB/,/^$/{print $2}') || die "Probe.framework has the wrong install name"
+grep -q 'minos 26.0' <(otool -l "$APP/DmProbe"; otool -l "$APP/Frameworks/Probe.framework/Probe") || die "deployment target is not 26.0"
+[ "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$APP/Info.plist")" = DmProbe ] || die "CFBundleExecutable"
+[ "$(/usr/libexec/PlistBuddy -c 'Print :MinimumOSVersion' "$APP/Info.plist")" = 26.0 ] || die "MinimumOSVersion"
+
+t "pack the IPA (dm/ios/tools/pack_ipa.py)"
+mkdir -p "$(dirname "$OUT")" || die "mkdir $(dirname "$OUT")"
+rm -f "$OUT" "$OUT.idx"
+python3 "$REPO/dm/ios/tools/pack_ipa.py" "$OUT" "Payload/DmProbe.app=$PWD/$APP" || die "pack_ipa"
+
+t "self-check the packed IPA"
+X=build/check && rm -rf "$X" && mkdir -p "$X" || die "mkdir $X"
+unzip -q "$OUT" -d "$X" || die "unzip $OUT"
+codesign -vvv --verify --strict "$X/Payload/DmProbe.app" >/dev/null || die "verify the extracted app"
+codesign -vvv --verify --strict "$X/Payload/DmProbe.app/Frameworks/Probe.framework" >/dev/null || die "verify the extracted framework"
+codesign -d -vvv "$X/Payload/DmProbe.app" 2>&1 | grep -E 'Identifier|Format|CDHash|TeamIdentifier' | sed 's/^/ /'
+
+t "IPA: $OUT ($(du -h "$OUT" | cut -f1 | tr -d ' '))"
+t "ready: sideload it (AltStore / Sideloadly / i4Tools), open DmProbe, read Documents/probe-log.txt; docs/probe-dlopen.md explains the results"
diff --git a/dm/ios/probe/src/probe.c b/dm/ios/probe/src/probe.c
new file mode 100644
index 00000000..77a15c6b
--- /dev/null
+++ b/dm/ios/probe/src/probe.c
@@ -0,0 +1,6 @@
+// Probe.framework: the payload of the dlopen probe (docs/probe-dlopen.md). One C function with a
+// known answer: the shell app dlsyms it in the framework it loaded and calls it, so a 42 back
+// proves the call went through the bundle framework and not somewhere else. Deliberately free of
+// every dependency: no Foundation, no libSystem calls beyond the C library, nothing that could
+// make the load fail for a reason other than the one under test.
+int probe_answer(void) { return 42; }
diff --git a/dm/ios/probe/src/probe_main.m b/dm/ios/probe/src/probe_main.m
new file mode 100644
index 00000000..ea28aa90
--- /dev/null
+++ b/dm/ios/probe/src/probe_main.m
@@ -0,0 +1,159 @@
+// probe_main.m: the shell of the dlopen probe (docs/probe-dlopen.md). Answers one question for the
+// launcher architecture C (docs/ROADMAP.md section 6): can a sideloaded IPA dlopen a dynamic
+// framework that ships inside its own bundle (DmProbe.app/Frameworks/Probe.framework) and call a
+// function in it, on a stock device, outside the jailbreak and the App Store review?
+// At launch it appends every step to Documents/probe-log.txt (visible in the Files app:
+// UIFileSharingEnabled in Info.plist), shows the verdict on screen, and stays open. The last log
+// line is the verdict: "RESULT: FEASIBLE ..." or "RESULT: BLOCKED ...".
+// Built with plain clang and a hand-written Info.plist by build_probe.sh, no Xcode project.
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+#import <dlfcn.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/stat.h>
+
+static FILE *g_log; // Documents/probe-log.txt, opened at the top of main
+static NSMutableString *g_screen; // the verdict, also shown on the app's screen
+
+static void logf_(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
+static void logf_(const char *fmt, ...) {
+ if (!g_log) return;
+ va_list ap;
+ va_start(ap, fmt);
+ vfprintf(g_log, fmt, ap);
+ va_end(ap);
+ fputc('\n', g_log);
+ fflush(g_log); // every line survives even if the process dies later
+}
+
+// One dlopen attempt: logs the form and dlerror()'s verbatim text, returns the handle (NULL on failure)
+static void *try_open(const char *form) {
+ logf_("dlopen(\"%s\", RTLD_NOW)", form);
+ dlerror(); // clear stale state so the next dlerror is this attempt's
+ void *h = dlopen(form, RTLD_NOW);
+ if (h) logf_(" -> handle %p", h);
+ else {
+ const char *e = dlerror();
+ logf_(" -> NULL, dlerror: %s", e ? e : "(no dlerror text)");
+ }
+ return h;
+}
+
+static NSMutableString *run_probe(void) {
+ NSBundle *bundle = [NSBundle mainBundle];
+ NSString *bundlePath = bundle.bundlePath ?: @"?";
+ NSString *execPath = bundle.executablePath ?: @"?";
+ logf_("bundle: %s", bundlePath.fileSystemRepresentation ?: "?");
+ logf_("executable: %s", execPath.fileSystemRepresentation ?: "?");
+ logf_("iOS: %s (%s)", [UIDevice currentDevice].systemVersion.UTF8String ?: "?",
+ [UIDevice currentDevice].model.UTF8String ?: "?");
+
+ NSMutableString *screen = [NSMutableString stringWithFormat:@"DmProbe dlopen probe (iOS %@)\n\n",
+ [UIDevice currentDevice].systemVersion];
+
+ // The framework must physically be in the bundle, beside the executable's Frameworks/ folder
+ NSString *fwPath = [bundlePath stringByAppendingPathComponent:@"Frameworks/Probe.framework/Probe"];
+ struct stat st = {0};
+ BOOL present = stat(fwPath.fileSystemRepresentation, &st) == 0;
+ logf_("framework file %s: %s", fwPath.fileSystemRepresentation, present ? "present" : "MISSING");
+ [screen appendFormat:@"framework file: %@\n\n", present ? @"present" : @"MISSING"];
+
+ // The forms to try, in order. The first two are the ones a launcher would use; the rest narrow
+ // down the failure if both are refused (absolute sandbox path, cwd-relative, bare name)
+ NSArray<NSString *> *forms = @[
+ @"@executable_path/Frameworks/Probe.framework/Probe",
+ @"@rpath/Probe.framework/Probe",
+ fwPath, // the absolute sandbox path of the same file
+ @"Probe.framework/Probe", // relative: dyld resolves it from the current directory (/)
+ @"Probe", // bare name: dyld's fallback search paths only
+ ];
+ void *handle = NULL;
+ NSString *okForm = nil;
+ for (NSString *form in forms) {
+ void *h = try_open(form.UTF8String);
+ if (h) { handle = h; okForm = form; break; }
+ }
+ if (!handle) {
+ logf_("RESULT: BLOCKED - every dlopen form failed (see the dlerror lines above)");
+ [screen appendString:@"every dlopen form failed\n\nRESULT: BLOCKED\n(see Documents/probe-log.txt for the dlerror texts)"];
+ return screen;
+ }
+
+ // The framework loaded: take the C function out of it and call it
+ logf_("dlsym(handle, \"probe_answer\")");
+ dlerror();
+ void *sym = dlsym(handle, "probe_answer");
+ const char *se = dlerror();
+ if (se || !sym) {
+ logf_(" -> failed: %s", se ? se : "NULL result");
+ logf_("RESULT: BLOCKED - the framework loaded (dlopen \"%s\") but dlsym failed: %s",
+ okForm.UTF8String, se ? se : "NULL result");
+ [screen appendFormat:@"dlopen OK via %@\ndlsym failed: %s\n\nRESULT: BLOCKED", okForm, se ? se : "NULL result"];
+ return screen;
+ }
+ int (*fn)(void) = (int (*)(void))sym;
+ int answer = fn();
+ Dl_info info = {0};
+ const char *from = dladdr(sym, &info) && info.dli_fname ? info.dli_fname : "(dladdr found no image)";
+ logf_(" -> probe_answer at %p in %s (image base %p)", sym, from, info.dli_fbase);
+ logf_(" -> probe_answer() = %d", answer);
+ if (answer == 42) {
+ logf_("RESULT: FEASIBLE - dlopen(\"%s\") succeeded and probe_answer() = 42: a sideloaded app can load and call code in a framework inside its own bundle (route C is viable)",
+ okForm.UTF8String);
+ [screen appendFormat:@"dlopen OK via %@\nprobe_answer() = 42\n\nRESULT: FEASIBLE\n\nfull log: Documents/probe-log.txt", okForm];
+ } else {
+ logf_("RESULT: BLOCKED - dlopen and dlsym succeeded but probe_answer() returned %d, not 42", answer);
+ [screen appendFormat:@"dlopen OK via %@, but probe_answer() = %d (wanted 42)\n\nRESULT: BLOCKED", okForm, answer];
+ }
+ return screen;
+}
+
+@interface ProbeDelegate : NSObject <UIApplicationDelegate>
+@property (nonatomic, strong) UIWindow *window;
+@end
+
+@implementation ProbeDelegate
+// The probe keeps the legacy UIApplication lifecycle (no scene manifest, no scene delegate): a
+// deprecated-but-supported path, which keeps this file one screen long. The deprecations it pulls
+// in (mainScreen, initWithFrame:) are silenced here on purpose.
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ UIWindow *w = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
+ UILabel *l = [[UILabel alloc] initWithFrame:w.bounds];
+ l.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+ l.numberOfLines = 0;
+ l.font = [UIFont fontWithName:@"Menlo" size:14] ?: [UIFont monospacedSystemFontOfSize:14 weight:UIFontWeightRegular];
+ l.text = g_screen ?: @"DmProbe";
+ l.textAlignment = NSTextAlignmentCenter;
+ l.backgroundColor = UIColor.systemBackgroundColor;
+ w.backgroundColor = UIColor.systemBackgroundColor;
+ w.rootViewController = [[UIViewController alloc] init];
+ w.rootViewController.view.backgroundColor = UIColor.systemBackgroundColor;
+ [w.rootViewController.view addSubview:l];
+ [w makeKeyAndVisible];
+ self.window = w;
+ return YES;
+}
+#pragma clang diagnostic pop
+@end
+
+int main(int argc, char *argv[]) {
+ @autoreleasepool {
+ // Documents/probe-log.txt: the Files app shows this folder (UIFileSharingEnabled), so the
+ // user can read and share the log without a computer. Appended, so past runs stay.
+ NSString *docs = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
+ NSString *logPath = [docs stringByAppendingPathComponent:@"probe-log.txt"];
+ g_log = fopen(logPath.fileSystemRepresentation, "a");
+ if (g_log)
+ fprintf(g_log, "\n---- DmProbe run %s (probe built %s %s) ----\n",
+ [[NSDate date] description].UTF8String, __DATE__, __TIME__);
+ g_screen = run_probe();
+ if (!g_log) { g_screen = [g_screen mutableCopy]; [g_screen appendString:@"\n\n(the log file could not be opened)"]; }
+ if (g_log) { fclose(g_log); g_log = NULL; }
+ // Stay open on the verdict: a probe that exits at once looks like a crash on the phone
+ UIApplicationMain(argc, argv, nil, NSStringFromClass([ProbeDelegate class]));
+ }
+ return 0;
+}
diff --git a/docs/probe-dlopen.md b/docs/probe-dlopen.md
new file mode 100644
index 00000000..625759c0
--- /dev/null
+++ b/docs/probe-dlopen.md
@@ -0,0 +1,92 @@
+# dlopen probe — the route C gate
+
+Route C of the universal launcher (shell app + one signed framework per game, `dlopen`ed at
+runtime) is listed in [ROADMAP.md](ROADMAP.md#6-universal-launcher--proven-feasible-bounded-by-apples-rules)
+as unvalidated, gated on exactly this experiment. The question: **on a stock, non-jailbroken
+iPhone, can a sideloaded IPA — installed outside the App Store review with AltStore, Sideloadly or
+i4Tools (爱思助手) — `dlopen` a dynamic framework inside its own bundle and call functions in it?**
+
+Every app with dynamic frameworks loads nested code from its own bundle at launch, so the
+mechanism exists; what this probe proves is that it survives the sideloaded conditions, where a
+free-provisioning signature replaces the ad-hoc one at install time and re-signs the app and every
+nested framework. If `dlopen` refuses such code, route C is dead on stock devices and the dlerror
+texts are the evidence for upstream; if it works, route C stands.
+
+## What ships
+
+`probe-out/DmProbe.ipa`, built by `dm/ios/probe/build_probe.sh` (plain `clang` and hand-written
+Info.plists, no Xcode project):
+
+```
+Payload/DmProbe.app/
+ DmProbe the shell: runs the probe at launch, then stays open
+ Frameworks/Probe.framework/Probe one C function, probe_answer() → 42 (src/probe.c)
+```
+
+At launch the shell appends one line per step to `Documents/probe-log.txt` and shows the verdict on
+its screen:
+
+1. the bundle and executable paths, the iOS version, and whether the framework file is present;
+2. `dlopen` attempts in order, each with its handle or its `dlerror()` text verbatim:
+ `@executable_path/Frameworks/Probe.framework/Probe`, then `@rpath/Probe.framework/Probe`, the
+ absolute sandbox path of the same file, the relative `Probe.framework/Probe`, and the bare
+ `Probe` (the last two are expected to fail; their texts tell us how far dyld got);
+3. on the first success: `dlsym` of `probe_answer`, a call (42 expected), and `dladdr` naming the
+ image the symbol came from;
+4. the last line is the verdict: `RESULT: FEASIBLE ...` or `RESULT: BLOCKED ...` plus the reason.
+
+## Installing and reading the result
+
+1. Sideload `DmProbe.ipa` with any of: AltStore (send the file to the phone, open it with
+ AltStore, or use AltServer's *Sideload .ipa* on the computer), Sideloadly (connect the iPhone,
+ drag the IPA in, enter the Apple ID, Start), or i4Tools (爱思助手: 应用游戏 → install a local
+ IPA). The IPA is unsigned-but-ad-hoc on purpose: the sideloader re-signs it with the user's
+ Apple ID, exactly like every game IPA this repository ships.
+2. The first install from a given Apple ID needs Settings → General → VPN & Device Management →
+ trust the certificate. A free Apple ID re-signs every 7 days; a one-shot probe does not mind.
+3. Open DmProbe and wait two seconds. The result is on the screen and in the file:
+ **Files app → On My iPhone → DmProbe → probe-log.txt** (`UIFileSharingEnabled` in the app's
+ Info.plist makes Documents visible there; runs append, so nothing is lost).
+4. Send the log back by sharing it from the Files app (long-press → Share → AirDrop / Mail /
+ WeChat), or from i4Tools' app-file browser (DmProbe → Documents → probe-log.txt). If no new
+ lines appeared, the app died before logging: send the crash report instead (Settings → Privacy
+ & Security → Analytics Data → `DmProbe-*.ips`).
+
+## Reading the result
+
+| Last line of probe-log.txt | Meaning |
+|---|---|
+| `RESULT: FEASIBLE - dlopen("@executable_path/Frameworks/Probe.framework/Probe") succeeded and probe_answer() = 42` | Route C is viable: a sideloaded app loads and calls code in a framework inside its own bundle. Proceed with the launcher shell + per-game frameworks. |
+| `RESULT: BLOCKED - ... no suitable image found ... (no such file)` | The framework is not in the installed bundle: the sideloader stripped it or the layout broke. Record the sideloader and version; fix the packaging before concluding anything about `dlopen`. |
+| `RESULT: BLOCKED - ... code signature ... not valid` / `not signed` / `no Team ID` | The nested framework's signature was rejected: the sideloader failed to re-sign it, or iOS refuses its signature. Record the exact text and sideloader; retry with another sideloader (or an `ldid`-signed IPA) before treating it as a platform refusal. |
+| `RESULT: BLOCKED - ...` with any other `dlerror` text | Record the text verbatim with the device model, iOS version and sideloader; the attempt lines above it show which forms were tried. |
+
+The failing fallbacks (relative and bare-name forms) always log `no suitable image found` texts —
+that is their expected outcome, not a verdict; the verdict uses only whether some form loaded.
+
+## What it does not prove
+
+- **App Store review rules** (a policy question, not a technique one): irrelevant to sideloaded
+ distribution, which is how this project ships.
+- **Loading code that is not in the signed bundle** (streaming game payloads from disk — the
+ original ROADMAP blocker): still expected to be blocked; route C compiles each game's modules
+ into its framework at packaging time, inside the signed bundle.
+- **JIT, or anything about the game modules themselves**: the rewriter's output needs much more
+ than one C function; this probe only opens the door the launcher would walk through.
+
+The build was self-checked on the Mac only (`codesign -vvv --verify --strict` on the framework,
+the app, and the app extracted from the packed IPA again; `otool` load commands: the app's
+`LC_RPATH @executable_path/Frameworks`, the framework's install name `@rpath/Probe.framework/Probe`,
+`minos 26.0`; `lipo` arm64; `plutil` on both Info.plists; `ldid` is not installed on this machine,
+so codesign only). The device run is the user's step.
+
+## Building it again
+
+```
+dm/ios/probe/build_probe.sh [out.ipa] # default: probe-out/DmProbe.ipa
+```
+
+compiles both binaries with `xcrun -sdk iphoneos clang` (arm64, deployment target iOS 26.0), writes
+the two Info.plists, ad-hoc signs the framework first and the bundle second (the same placeholder
+order `build_ipa.sh` uses — the sideloader replaces both signatures), packs with
+`dm/ios/tools/pack_ipa.py`, and re-verifies the extracted IPA before printing the path.
diff --git a/probe-out/DmProbe.ipa b/probe-out/DmProbe.ipa
new file mode 100644
index 00000000..313770cc
Binary files /dev/null and b/probe-out/DmProbe.ipa differ