"unable to find sdk 'xros'" when building for VisionOS

I install XCode 15.01 on MacOS 14.1.

I open a Unity project. I tell it to target visionOS (experimental).

I get the error: "unable to find sdk 'xros'".

I go to developer.apple.com. I download the "Hello World" sample for vision. I open it in XCode and build it.

I get the error: "unable to find sdk 'xros'".*

It seems something is not installed. I go into XCode Preferences. I look under "Platforms". It says visionOS 1.0 Simulator is installed.

I can't find an explanation for this in the docs. All docs seem to assume I've already got installed and working the thing I don't have installed or working. If I go to the visionos/learn page and click "Download SDK", it just offers to let me download Xcode 15.1 beta 2 or Xcode 15.0.1. But I already have XCode 15.01.

If I search Downloads for "visionos" I do find an entry for "visionOS 1 beta 4 Simulator Runtime". But the information for it says: "The simplest way to install the visionOS simulator runtime is by using Xcode. Xcode can automatically install it when you build a project or start a new one." So it seems to be saying I shouldn't download it.

What should I do?

* Full errors: Couldn't look up product type 'com.apple.product-type.application' in domain '': Couldn't load spec with identifier 'com.apple.product-type.application' unable to find sdk 'xros' unable to resolve product type 'com.apple.product-type.application' There are no architectures to compile for because the VALID_ARCHS build setting is an empty list.

Answered by sadaotokuyama in 770302022

Do you have Xcode 15 Beta version installed, you know you can't develop visionOS apps with the official version of Xcode 15, right?

Accepted Answer

Do you have Xcode 15 Beta version installed, you know you can't develop visionOS apps with the official version of Xcode 15, right?

"you know you can't develop visionOS apps with the official version of Xcode 15, right?"

Thank you, I did not know that.

I switched to Beta 15.1 and now I can build.

I don't know if Apple reads these posts but, in my opinion this is confusing. It's documented in many places 15.0 beta could build for VisionOS. So 15.0 release can't? Okay, but then I wish the "Download SDK" page on the VisionOS page had just said that…

Your opinion is noted, thanks. I do recommend, though, that you use Feedback Assistant to request clearer messaging on this. Submitting a report helps raise the visibility of the issue.

I'm using intel chip. Developing for visionOS only support Mac with Apple silicon now?

"unable to find sdk 'xros'" when building for VisionOS
 
 
Q