Skip to content

Commit

Permalink
CI: Use xctrace to get the right simulator ID
Browse files Browse the repository at this point in the history
`instruments` was removed in Xcode 13, so we need to use another way.
  • Loading branch information
badboy committed Sep 29, 2021
1 parent 4848309 commit 0680fbf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .circleci/config.yml
Expand Up @@ -566,8 +566,8 @@ jobs:
# Bootstrap dependencies
bin/bootstrap.sh
# See https://circleci.com/docs/2.0/testing-ios/#pre-starting-the-simulator
xcrun instruments -w "iPhone 11 (14" || true
UDID=$(xcrun xctrace list devices 2>&1 | grep 'iPhone 11 Simulator (14' | awk -F'[()]' '{print $4}')
xcrun simctl boot "$UDID"
# Store build type for use in cache key
if [ -z "${CIRCLE_TAG}" ]; then
echo "debug" > buildtype.txt
Expand Down Expand Up @@ -658,9 +658,11 @@ jobs:
rustup target add aarch64-apple-ios x86_64-apple-ios
# List available devices -- allows us to see what's there
xcrun instruments -w list || true
# See https://circleci.com/docs/2.0/testing-ios/#pre-starting-the-simulator
xcrun instruments -w "iPhone 11 (14" || true
DEVICES=$(xcrun xctrace list devices 2>&1)
echo "$DEVICES"
# Pick a device and start it
UDID=$(echo "$DEVICES" | grep 'iPhone 11 Simulator (14' | awk -F'[()]' '{print $4}')
xcrun simctl boot "$UDID"
- run:
name: Install Rust Nightly toolchain
command: |
Expand Down

0 comments on commit 0680fbf

Please sign in to comment.