Repository navigation
Ask before the build when the shared app holds frameworks of an old shader chain - #450
Merged
Merged
Conversation
…hader chain (#449) A build for the iPhone or iPad compares the chain of each framework in the shell folder with the chain of the engine. With stale ones it asks first, naming the games. Stop touches nothing. Continue removes only the stale frameworks and their library entries, then the build goes on.
This was referenced Nov 1, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix or feature
What and why
Closes #449.
After the engine moved to a new shader chain, adding a game to the shared iPhone and iPad app failed at the last step.
build_shell.sh --prepare-xcoderefused the frameworks of the old chain inNX2Apple-shell/frameworks, after the long steps, with a message that did not say what to do.Now a build for the iPhone or iPad checks before the long steps. It reads the chain of the engine from
dm/gfx/nvn/dmsh_chain.h(theDMSH_CHAIN, writtenb-<chain>) and the chain of each framework from itsgame.manifest.json. These are the two values the script compares. The frameworks come from the shell's mirror folder and from the games inshell.json. No engine change is needed, so there is no patch and no seedds/nxnative PR.shell.json, then the build goes on. Frameworks of the current chain stay.LocalizationStaleFrameworks.swift, becauseLocalization.swiftis above the size limit and may only shrink.L10n.stringasks them for a key the main table does not hold, on the line that returned the key before.ContentView.swiftdoes not grow: three lines are added and three blank lines are removed.The Windows launcher does not need this. It builds the IPA directly and has no shared app or framework folder. Its driver refuses
--prepare-xcode.Checked
cd frontend && swift testpasses (691 tests, 17 skipped, 0 failures). NewStaleFrameworksTests:testStopLeavesEveryFileAsItWasandtestContinueRemovesTheStaleFrameworkAndKeepsTheCurrentOneuse a shell folder with one current and one stale framework.testContinueStartsTheBuildAndTheModelEndsWithoutAPromptcovers the model's Continue.testNothingIsAskedWhenEveryFrameworkIsCurrentcovers the case with no prompt. Also a test for the chain header, the game being built, an unreadable manifest and the five languages.NX_LAUNCHER_CAPTURE_DIR=<dir> swift test --filter testRenderStalePromptForVisualQA, withNX_CAPTURE_LANG=zhfor the second.Screenshots
Before: there was no prompt. The build failed at the last step with "Cannot prepare the shared app" and the line
built for shader chain b-e65a4ebd3322, this checkout is b-b7cd656abd7c: build the game again.After. A SwiftUI alert is a sheet that
cacheDisplaydoes not draw, so these two images render the alert's title, message and buttons with the same strings in a plain view. The real alert looks like the system one.Scope
dm/,scripts/,docs/,ref/) is added to the repository: a change there is a patch inpatches/(a commit inengine/, thentools/engine.py export, andtools/engine.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#..., orpendinguntil that PR is open (no engine change here)