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