Repository navigation
feat(cli): replace the iOS simulator dev executable on rebuild - #1655
Merged
Merged
Conversation
houko
force-pushed
the
feat/ios-simulator-dev-rebuild-661
branch
from
November 21, 2026 17:23
461183a to
147eab0
Compare
houko
force-pushed
the
feat/ios-simulator-dev-rebuild-661
branch
from
November 21, 2026 18:53
147eab0 to
a2a302e
Compare
houko
force-pushed
the
feat/ios-simulator-dev-rebuild-661
branch
from
November 21, 2026 19:29
a2a302e to
8d70965
Compare
This was referenced Nov 21, 2026
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.
Summary
On a Go-only rebuild,
nsgo dev -target ios_simulatorrelaunches the main app after replacing its installed executable. The tool compares the staged bundle’s Info.plist and signed resource seal with the installation before atomically replacing the signed executable. The first launch, changes to the package or its configuration, and failed executable replacements use a full install.Refs #661. The Android dev loop is tracked separately in #1685.
Targets
nsgo dev)Verification on
a2a302e04mainat263210481. The simulator workflow keeps the existing video seek test and also runs the executable replacement test. The shipping skill includes both simulator dev behavior and HarmonyOS signing.nsgo dev -target ios_simulatorsession recorded one install on launch. A Go source edit started the new code in a new process and executable inode while keeping the installed Info.plist inode and install count. Editing a packaged resource, adding and editing the default PNG icon, adding an Info.plist setting viansgo.yaml, and a YAML comment edit each triggered one full install. The installed resource, asset catalog, and Info.plist reflected their edits. Another Go source edit then reused the installed bundle. Each installed state passedcodesign --verify --strict.go tool nsgo build -target ios_simulator ./testdata/simulatordevproduced a simulator app that passedcodesign --verify --strict.go tool nsgo check ./cmd/nsgo,go tool nsgo check -target ios,ios_simulator -jobs 2, the NSGo skill test, andactionlint .github/workflows/test.ymlpassed.Checklist