Skip to content

Commit 3ea0b1c

Browse files
committed
Update build.yml
1 parent c3cf56b commit 3ea0b1c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,20 @@ jobs:
7979
8080
# 선택된 iOS 런타임에서 'iPhone'이 포함된 첫 번째 시뮬레이터 이름 선택 (JSON 파싱)
8181
DEVICE_INFO=$(python3 - <<'PY'
82-
import json, os, subprocess, sys
83-
ios_ver = os.environ['IOS_VER']
84-
prefix = f"com.apple.CoreSimulator.SimRuntime.iOS-{ios_ver.replace('.', '-') }"
85-
data = subprocess.check_output(["xcrun", "simctl", "list", "devices", "available", "-j"], text=True)
86-
j = json.loads(data)
87-
for runtime, devices in j.get("devices", {}).items():
88-
if not runtime.startswith(prefix):
89-
continue
90-
for d in devices:
91-
if d.get("isAvailable") and "iPhone" in d.get("name", ""):
82+
import json, os, subprocess, sys
83+
ios_ver = os.environ['IOS_VER']
84+
prefix = f"com.apple.CoreSimulator.SimRuntime.iOS-{ios_ver.replace('.', '-') }"
85+
data = subprocess.check_output(["xcrun", "simctl", "list", "devices", "available", "-j"], text=True)
86+
j = json.loads(data)
87+
for runtime, devices in j.get("devices", {}).items():
88+
if not runtime.startswith(prefix):
89+
continue
90+
for d in devices:
91+
if d.get("isAvailable") and "iPhone" in d.get("name", ""):
9292
os_ver = runtime.split("iOS-")[-1].replace("-", ".")
9393
print(f"{d['name']}|{os_ver}")
94-
sys.exit(0)
95-
sys.exit(1)
94+
sys.exit(0)
95+
sys.exit(1)
9696
PY
9797
)
9898

0 commit comments

Comments
 (0)