Skip to content

Commit 4b2e9b9

Browse files
committed
Update build.yml
1 parent a683803 commit 4b2e9b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
3535
mac_ver = subprocess.check_output(["sw_vers", "-productVersion"], text=True).strip()
3636
mac_major = mac_ver.split('.')[0]
37+
try:
38+
mac_major_num = int(mac_major)
39+
except ValueError:
40+
mac_major_num = None
41+
if mac_major_num is not None and mac_major_num <= 15:
42+
mac_major = "26"
3743
3844
text = subprocess.check_output(["xcrun", "simctl", "list", "devices"], text=True)
3945
lines = text.splitlines()

0 commit comments

Comments
 (0)