Skip to content

Commit

Permalink
again a fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Feb 20, 2024
1 parent 15a0648 commit 9465cc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ jobs:

- name: Create iOS 13.7 simulator
if: ${{ matrix.device == 'iPhone 8 (13.7)' }}
run: ./scripts/create-simulator.sh 11.7 13.7 13_7
run: ./scripts/create-simulator.sh 11.7 13.7 13-7

- name: Create iOS 16.4 simulator
if: ${{ matrix.device == 'iPhone 14 (16.4)' }}
run: ./scripts/create-simulator.sh 14.3.1 16.4 16_4
run: ./scripts/create-simulator.sh 14.3.1 16.4 16-4

# GitHub Actions sometimes fail to launch the UI tests. Therefore we retry
- name: Run Fastlane
Expand Down
4 changes: 2 additions & 2 deletions scripts/create-simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -euo pipefail

XCODE_VERSION="${1}"
SIM_RUNTIME="${2}"
SIM_RUNTIME_UNDERSCORE="${3}"
SIM_RUNTIME_WITH_DASH="${3}"

sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
sudo ln -s /Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ ${SIM_RUNTIME}.simruntime
xcrun simctl create custom-test-device "iPhone 8" "com.apple.CoreSimulator.SimRuntime.iOS-${SIM_RUNTIME_UNDERSCORE}"
xcrun simctl create custom-test-device "iPhone 8" "com.apple.CoreSimulator.SimRuntime.iOS-${SIM_RUNTIME_WITH_DASH}"

0 comments on commit 9465cc3

Please sign in to comment.