ci: prune unavailable simulators before running tests

Shared macOS runner accumulates orphaned simulator entries (registry
present, data dir missing on disk) which fail run_tests with 'Unable
to boot device because it cannot be located on disk'. Clean up before
every test run instead of requiring manual simctl intervention.
This commit is contained in:
2026-09-11 09:18:46 -03:00
parent a5827f9136
commit 240cb288bf

View File

@@ -19,5 +19,8 @@ jobs:
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/archive/${{ github.sha }}.tar.gz"
tar -xzf /tmp/repo.tar.gz --strip-components=1 -C "$GITHUB_WORKSPACE"
- name: Prune orphaned simulators (shared runner, avoids stale-UDID boot failures)
run: xcrun simctl delete unavailable || true
- name: Run tests with coverage
run: fastlane tests