Repository navigation
Install: reinstall the signed app, or save it as an IPA, without building again - #149
Merged
Merged
Conversation
A device build ends in `devicectl device install app`, so it never writes an .ipa: deleting the app on the phone meant a full rebuild (extraction, shaders, signing) to get it back, and nothing could hand the signed build to another Mac or a sideloader. The signed .app already sits in xcode-derived-data. The install card now has: - Reinstall: `devicectl device install app` of that app as it is — no unpack, no signing, no packing. The bundle ID does not change, so the device keeps the app's Documents (game data and saves). - Save IPA…: NSSavePanel, then the app as Payload/<name>.app, an ordinary IPA a sideloader or another Mac installs while the signature lasts. The game data is not in it (it stays in Documents/romfs.img), and --norsrc keeps __MACOSX out. A missing cached app, an expired signature (devicectl's own error line) and a failed pack each say what happened and what to do, in both languages. Verified: swift test --package-path frontend -> 183 tests, 6 skipped, 0 failures (5 new: the reinstall command and that it does not build or pack again, the Payload zip listing, the two missing-app paths, the IPA name). Not verified: a real device (the owner's).
LNPANDY
force-pushed
the
task-145-reinstall-saveipa
branch
from
October 28, 2026 17:30
d99fff2 to
9fe5038
Compare
This was referenced Oct 28, 2026
LNPANDY
added a commit
that referenced
this pull request
Oct 28, 2026
Revert #149: the reinstall/save-IPA work is still being iterated
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.
Part of #145 (the first half). A device build ends in
xcrun devicectl device install app, so it never writes an.ipa: deleting the app on the phone meant a full rebuild (extraction, shaders, signing), and the signed build could not be handed to another Mac or a sideloader.The signed
.appalready sits in<game>_build/xcode-derived-data/Build/Products/Release-iphoneos/. The install card now uses it.What changes
xcrun devicectl device install app --device <UDID> <cached .app>, as it is: no unpack, no signing, no packing, no game-file copy. The bundle ID does not change, so the device keeps the app's Documents (game data and saves).NSSavePanel(default name from the app's display name, separators replaced), then the app asPayload/<name>.apppacked withditto -c -k --norsrc --keepParent. That is an ordinary IPA a sideloader or another Mac installs while the signature lasts; the game data is not in it (it stays inDocuments/romfs.img), and--norsrckeeps__MACOSXout.The 7-day expiry and the re-sign button are the second half of #145, a separate PR: this one never re-signs.
Verified
swift test --package-path frontend→ 183 tests, 6 skipped, 0 failures (L10n.selfCheck()included, so both languages are non-empty).xcodebuildand no second romfs pack; the saved archive listsPayload/DmIOS.app/Info.plistand no__MACOSX; both actions name the missing app; the IPA name drops/and:.Not verified
devicectlis exercised through the existing fake-xcrunfixture only.