Skip to content

Commit d0a2631

Browse files
committed
Skip get_latest_simulator for cmake
1 parent 8c5e6c9 commit d0a2631

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ function CheckUnexpectedFailures() {
170170

171171
# Dynamically fetches the latest available simulator for a given OS and device type.
172172
function get_latest_simulator() {
173+
if [[ "$method" == "cmake" ]]; then
174+
# Skip for cmake builds since xcrun isn't available on Linux.
175+
echo "null"
176+
return 0
177+
fi
178+
173179
local os_name="$1"
174180
local device_keyword="$2"
175181
local simulator_name

0 commit comments

Comments
 (0)