File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,15 @@ jobs:
1717 - name : Get latest iOS simulator destination
1818 id : simulator
1919 run : |
20- # 사용 가능한 시뮬레이터 목록에서 최신 모델+OS 선택
2120 LINE=$(xcrun simctl list devices available |
2221 grep -E 'iPhone|iPad' |
2322 grep -v "unavailable" |
2423 sort -t, -k2 -r |
2524 head -1)
26-
27- # 예시 LINE: "iPhone 16 Pro (18.1) [UUID]"
28- DEVICE_NAME=$(echo "$LINE" | awk -F ' \(' '{print $1}')
29- OS_VERSION=$(echo "$LINE" | awk -F '[()]' '{print $2}')
30-
25+
26+ DEVICE_NAME=$(echo "$LINE" | sed -E 's/ \([0-9.]+\).*//')
27+ OS_VERSION=$(echo "$LINE" | sed -E 's/.*\(([0-9.]+)\).*/\1/')
28+
3129 DEST="platform=iOS Simulator,OS=$OS_VERSION,name=$DEVICE_NAME"
3230 echo "DESTINATION=$DEST" >> $GITHUB_ENV
3331 echo "Selected destination : $DEST"
You can’t perform that action at this time.
0 commit comments