Repository navigation
Conversation
…the executable carries the entitlements The Xcode build phase already takes DM_COPY_ROMFS=NO (the app then reads Documents/romfs.img, scripts/push_romfs.sh); the unsigned IPA now takes it too, so a large game's package stays within what iOS extracts. The default is unchanged. An unsigned build has no signature for a sideloader to read entitlements from, so the Increased Memory Limit request was lost. The executable now gets an ad-hoc signature with the entitlements (DM_ENTITLEMENTS as for the Xcode project).
…p checks the image --romfs bundle|separate (ROMFS in the settings block; bundle stays the default) builds the unsigned IPA and the prepared Xcode project with DM_COPY_ROMFS=NO and prints the one push_romfs.sh command per game and version. The RomFS image stays where the extraction put it, so a rebuild neither packs nor sends it again. A slim build carries romfs.id (title, version, build, image size and a hash of the image's header and index, cheap even for 14 GB). main.m uses Documents/romfs.img only when its identity matches, and otherwise logs a [RED] line and shows an alert naming the expected and found image and the push_romfs.sh command. push_romfs.sh also takes the image directly.
Add --romfs separate to unsigned IPA and prepared Xcode builds. Keep the extracted image available for one-time transfer and compare its size and header/index identity before using Documents/romfs.img. Keep bundle as the default and keep add-on content bundled. Reject separate deployment with extraction cleanup before building, since cleanup otherwise deletes the image the printed push command needs. Reject mismatching images while retaining the existing validated folder fallback; regression tests reproduce both original failures. Validate 451 tool tests (8 optional skips), 38 iOS tests, the actual prepared-project settings in both modes, 178 iOS compilation units, and the lint ratchet. Game regression and build results are recorded in the PR reply. Device startup and sideloader entitlement preservation are not claimed. Co-authored-by: v0lumehi <[email protected]>
|
Taken into Two general fixes accompany the integration:
Both regression tests failed against the original change and pass with these fixes. Checked locally:
On-device install/startup, the alert's appearance, entitlement preservation by a sideloading tool, and a real large-game slim pack timing remain unverified. No device signing or installation was performed. Scoped game validation for #478 / #493The change reaches iOS deployment and startup. The shader chain and game profiles are unchanged. Targeted IPA/Xcode staging, C/Python identity and Foundation startup tests exercise the changed paths; Mac game runs provide supplementary coverage. The original The comparison baseline was
This is not a green runtime comparison. ANIMAL WELL's baseline missed screenshots at 68, 72 and 95 seconds; its candidate did not. Wonder missed the route's frame-2400-by-60-seconds target in both revisions, and its candidate also missed screenshots at 50 and 58 seconds. Wonder's baseline log includes repeated display-link stalls. The measured Mac was busy, and baseline/candidate Mac instructions are identical. These results do not isolate a regression caused by this iOS deployment change, and no performance improvement is claimed. The classifications and missing coverage are retained here rather than counted as a pass. No on-device install/startup, alert appearance, sideloader entitlement preservation or large-game slim pack timing is claimed. Closing as integrated. Device validation remains a follow-up. |
…s#493) Add --romfs separate to unsigned IPA and prepared Xcode builds. Keep the extracted image available for one-time transfer and compare its size and header/index identity before using Documents/romfs.img. Keep bundle as the default and keep add-on content bundled. Reject separate deployment with extraction cleanup before building, since cleanup otherwise deletes the image the printed push command needs. Reject mismatching images while retaining the existing validated folder fallback; regression tests reproduce both original failures. Validate 451 tool tests (8 optional skips), 38 iOS tests, the actual prepared-project settings in both modes, 178 iOS compilation units, and the lint ratchet. Game regression and build results are recorded in the PR reply. Device startup and sideloader entitlement preservation are not claimed. Co-authored-by: v0lumehi <[email protected]>
What and why
Stacked on #478 (
DM_COPY_ROMFS=NOfor the unsigned IPA). The first commit here is #478's; review only the last one,c60f69d6.Roadmap #313, "Game files stay on the device". A cold Breath of the Wild build on an M2 Max took 53 min. Of that, packing the IPA took 10.9 min (14.7 GB, nearly all of it RomFS). Every rebuild pays that pack, and then the transfer to the phone, even though the RomFS only changes with the game's version. The parts for keeping it on the phone exist (
push_romfs.sh,main.mreadingDocuments/romfs.img, #478), but as a manual "Quick reinstalls" recipe without a guard against a wrong image. This makes it a route the NSP script supports:--romfs separate(orROMFS = 'separate'in the settings block): the IPA or Xcode project is built without the RomFS. The image stays where the extraction keeps it (<id>_build/extract/<version>/RomFS.img, reused with the extraction), and the script prints thepush_romfs.shcommand, needed once per game and version. The default,bundle, is unchanged.--romfs separatewith--platform mac/mac-appis an error.romfs.idin the app bundle, one ASCII line:DMROMFSID1 title=<title ID> version=<display version> build=<package version> size=<bytes> index=<16 hex>indexis FNV-1a 64 over the image's 32-byte header and its index tables. The file data isn't read, so the check is cheap at every start.sizeandindexdecide a match;title,versionandbuildare for the message.Documents/romfs.imgat start, so no second file on the phone can go stale. The computation is shared C (dm/host/romfs_identity.h) and Python (romfs_image.py --identity).main.m,romfs_identity_accepts, called from one line inromfs_locate):[RED] boot:line and an alert (with the existing game-files label) that names the expected and the found image and the command that fixes it. A validDocuments/romfsfolder is still used as before.romfs.id(everybundlebuild) accepts any complete image, as today.push_romfs.shalso takes aRomFS.imgpath directly and prints the image's identity before copying.Documents/aocfor slim builds is iOS: find a game's DLC (aoc/) in Documents before the app bundle #486 and its follow-up; the hunks inmain.mandpush_romfs.share kept apart from it.Question for @seedds: should
separatebecome the default for iPhone builds once it has been used for a while? I left the default as it is.Checked
test_romfs_identity(the C and Python identities agree; parsing; a mismatch is detected) andtest_nsp_romfs(the option, the printed command, the platform error).test_ipa_unsigned(a slim IPA without RomFS and withromfs.id),test_romfs_startup(match, mismatch, missing, folder fallback, no-identity build) andtest_xcode_workflow(the copy phase writes or removesromfs.id).dm/tools/tests(421) anddm/ios/tests(36),test_docsandtest_env_switchespass. The lint ratchet shows 0 new findings.compile_check.py, as in CI) compiles 178 files, 0 failed.Gen/dm.xcconfigline.test_romfs_startup.Docs
docs/development.md(Quick reinstalls),README.md(packing) anddocs/env_switches.tsvdescribe the option