Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Commit 14ee009

Browse files
authored
Run launchctl remove com.apple.CoreSimulator.CoreSimulatorService on local runs as well. (#8)
Otherwise the simulator locks up and the runner crashes.
1 parent c7bee84 commit 14ee009

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bazel.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ ls /Applications/ | grep "Xcode" | while read -r xcode_path; do
8282
if [ -n "$KOKORO_BUILD_NUMBER" ]; then
8383
sudo xcode-select --switch /Applications/$xcode_path/Contents/Developer
8484
xcodebuild -version
85-
86-
# Resolves the following crash when switching Xcode versions:
87-
# "Failed to locate a valid instance of CoreSimulatorService in the bootstrap"
88-
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true
8985
fi
86+
87+
# Resolves the following crash when switching Xcode versions:
88+
# "Failed to locate a valid instance of CoreSimulatorService in the bootstrap"
89+
launchctl remove com.apple.CoreSimulator.CoreSimulatorService || true
9090
fi
9191

9292
bazel clean

0 commit comments

Comments
 (0)