Skip to content

Commit a23dcc9

Browse files
Fix sim udid grep
Co-authored-by: SrinivasanTarget <srinivasan.sekar1990@gmail.com>
1 parent 746483d commit a23dcc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/appium3_ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
wait_for_boot: true
4242

4343
- run: |
44-
target_sim_id=$(xcrun simctl list devices available | grep "iPhone 16 (18.5)" | sed -n 's/.*(\([^)]*\)).*/\1/p' | head -n 1)
44+
target_sim_id=$(xcrun simctl list devices available | grep "iPhone 16" | cut -d "(" -f2 | cut -d ")" -f1 | head -n 1)
4545
echo "Target sim id: $target_sim_id"
4646
echo "udid=$target_sim_id" >> $GITHUB_ENV
4747

0 commit comments

Comments
 (0)