Skip to content

Commit b020f34

Browse files
fix: visionos log output (#129)
Co-authored-by: Igor Randjelovic <[email protected]>
1 parent 05b610b commit b020f34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/iphone-simulator-xcode-simctl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,12 @@ export class XCodeSimctlSimulator
233233
if (!this.isDeviceLogOperationStarted) {
234234
const deviceVersion = device ? device.runtimeVersion : "";
235235
const majorVersion = deviceVersion.split(".")[0];
236+
237+
const isVisionOS = device.platform === "visionOS";
238+
const isSupportediOSVersion =
239+
majorVersion && parseInt(majorVersion) >= 11;
236240

237-
if (majorVersion && parseInt(majorVersion) >= 11) {
241+
if (isVisionOS || isSupportediOSVersion) {
238242
timer = setTimeout(() => {
239243
fulfillSafe();
240244
}, 3000);

0 commit comments

Comments
 (0)