mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
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.
This commit is contained in:
1 parent
3865c6515d
commit
7623ca7a21
2 files changed
+7
-1
No files matched your search
@@ -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`,
|
`just ios` regenerates `app/iosApp/iosApp.xcodeproj` from `app/iosApp/project.yml`,
|
||||||
builds the KMP framework (`Shared.framework` from `:app:shared`), links it
|
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
|
## Web
|
||||||
|
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ ios:
|
|||||||
-destination 'platform=iOS Simulator,name={{ios_device}}' \
|
-destination 'platform=iOS Simulator,name={{ios_device}}' \
|
||||||
-derivedDataPath app/iosApp/build \
|
-derivedDataPath app/iosApp/build \
|
||||||
build | tail -5
|
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 install booted "{{ios_app}}"
|
||||||
xcrun simctl launch booted app.folio
|
xcrun simctl launch booted app.folio
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user