Skip to content

feat(cli): replace the iOS simulator dev executable on rebuild - #1655

Merged
houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/ios-simulator-dev-rebuild-661
Nov 21, 2026
Merged

houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/ios-simulator-dev-rebuild-661

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On a Go-only rebuild, nsgo dev -target ios_simulator relaunches 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

  • Shared code (nsgo dev)
  • iOS Simulator

Verification on a2a302e04

  • Rebased onto main at 263210481. 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.
  • Six focused tests passed on an iPhone 17 simulator running iOS 27.0. The real simulator test launched both signed executable versions and verified that the installed Info.plist kept its inode after the Go-only rebuild. The other tests covered simulator startup, bundle input watches, and signature verification after replacement.
  • A live nsgo dev -target ios_simulator session 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 via nsgo.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 passed codesign --verify --strict.
  • go tool nsgo build -target ios_simulator ./testdata/simulatordev produced a simulator app that passed codesign --verify --strict.
  • go tool nsgo check ./cmd/nsgo, go tool nsgo check -target ios,ios_simulator -jobs 2, the NSGo skill test, and actionlint .github/workflows/test.yml passed.

Checklist

  • The title is a Conventional Commit.
  • The docs, roadmap, skill, and changelog describe the simulator dev behavior.
  • The simulator fixture is part of this repository.

@github-actions github-actions Bot added enhancement New feature or request size/M documentation Improvements or additions to documentation cli ci conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/ios-simulator-dev-rebuild-661 branch from 461183a to 147eab0 Compare November 21, 2026 17:23
@github-actions github-actions Bot added conflict Conflicts with the base branch; resolve it first and removed conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/ios-simulator-dev-rebuild-661 branch from 147eab0 to a2a302e Compare November 21, 2026 18:53
@houko
houko force-pushed the feat/ios-simulator-dev-rebuild-661 branch from a2a302e to 8d70965 Compare November 21, 2026 19:29
@houko
houko merged commit e99cc1c into nsgo-dev:main Nov 21, 2026
8 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci cli conflict Conflicts with the base branch; resolve it first documentation Improvements or additions to documentation enhancement New feature or request size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant