Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add visionOS Simulator as platform #220

Merged
merged 7 commits into from Nov 23, 2023
Merged

Add visionOS Simulator as platform #220

merged 7 commits into from Nov 23, 2023

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Nov 23, 2023

Add support for handling visionOS destinations, devices, platform lookups, etc.

Tested in bitrise-steplib/bitrise-step-xcode-start-simulator#10

@ofalvai ofalvai marked this pull request as ready for review November 23, 2023 14:41

// simctl reports visionOS as xrOS
if runtime.Platform == "xrOS" && wantedPlatform == string(VisionOS) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will break in one of the next Xcode update. At the moment the Vision Pro OS is called xrOS but Apple is actively renaming it to visionOS. Once that is done this if statement will not work because runtime.Platform == "xrOS" will be never true.

The problem is that this will be silent breakage so I think we should already add the new expected OS name there too. Like

if (runtime.Platform == "xrOS" || runtime.Platform == "visionOS") && wantedPlatform == string(VisionOS) {
    ...
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a cool idea! Fixed

@ofalvai ofalvai merged commit 9c1d7b4 into master Nov 23, 2023
4 checks passed
@ofalvai ofalvai deleted the SSW-1100-visionos branch November 23, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants