From 7623ca7a21fc3b5c85bfbb91fa39b7ca105373cf Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 15 Aug 2026 20:43:28 +0530 Subject: [PATCH] fix(folio): uninstall before installing in just ios folio's signed-in session lives in the data container, which an install over the top keeps, so a local run started right after just ios opened on the previous run's Home screen and diverged at step 1. On CI's fresh simulator the uninstall is a no-op, so the ios leg is unchanged. --- examples/folio/README.md | 4 +++- examples/folio/justfile | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/folio/README.md b/examples/folio/README.md index e96158f..2bac9c5 100644 --- a/examples/folio/README.md +++ b/examples/folio/README.md @@ -37,7 +37,9 @@ IOS_DEVICE="iPhone 15" just ios # pick a different simulator `just ios` regenerates `app/iosApp/iosApp.xcodeproj` from `app/iosApp/project.yml`, builds the KMP framework (`Shared.framework` from `:app:shared`), links it -into the SwiftUI host, installs, and launches. +into the SwiftUI host, uninstalls any previous copy, installs, and launches. +The uninstall matters: folio's signed-in session survives an install over the +top, so without it a run opens on the last run's Home screen. ## Web diff --git a/examples/folio/justfile b/examples/folio/justfile index 4328766..10ca2d5 100644 --- a/examples/folio/justfile +++ b/examples/folio/justfile @@ -130,6 +130,10 @@ ios: -destination 'platform=iOS Simulator,name={{ios_device}}' \ -derivedDataPath app/iosApp/build \ build | tail -5 + # Installing over the top keeps the data container, and folio's signed-in + # session with it, so a run started straight after would open on the last + # run's Home screen instead of Login and diverge at step 1. + xcrun simctl uninstall booted app.folio || true xcrun simctl install booted "{{ios_app}}" xcrun simctl launch booted app.folio