XR Management 'VisionOS Error'

Library\PackageCache\com.unity.xr.management@4.4.1\Editor\Metadata\KnownPackages.cs(12,70): error CS0117: ‘BuildTargetGroup’ does not contain a definition for ‘VisionOS’

Somebody Help me…

I’ve already tried downloading 4.4.1 and modifying it to 4.4.0, but it didn’t work well with more errors.
Is there any way to download a lower version of the XR Management package from the ground up?

Open up the KnownPackages.cs Script,

simply comment out the areas containing the #if unity vision pro (or something like that) parts

so for example

/*
#if Vision_Pro

#endif
*/

There should be 2 instances of this in the script.
I had this issue too, but it was a few days ago, so I’m doing this out of my memory.
But if I recall correctly, downgrading to 4.4.0 did resolve the issue, so maybe it upgraded the package again, or something went wrong while downgrading. Either way, commenting the area out should work.

1 Like

How to download the old version of XR Plugin Management?
(Making a comment line worked by the way)

Hey, this error is known and will be fixed in the upcoming XR Management 4.5.0 release.

When is 4.5.0 expected? Was surprised to load up Unity 2023.2.12f1 and auto update all my packages to hit this error

2 Likes

4.5.0 should be available in the next couple of weeks. I will add this thread to our internal ticket so that I remember to update it when the release is available

You can go to version 4.4.0 by typing in the package name in ‘install by name’ in the package manager by clicking the plus and set the option for version to 4.4.0

2 Likes

same here , fresh install on 2023.2.18 still using 4.4.1 , had to roll back to 4.4.0

This is STILL broken in the current 2023.2.18f1 when adding the com.unity.xr.management using the auto-popup-wizard when creating a new project (in my case “HDRP+VR”).

Also, the Version History for that package in the PackMan is empty, so you are forced to hack manifest.json yourself.

Make sure your headset is plugged in ( this can be with a link cable if youhave oculus) . after you verify that your headset is pluggin , hit the play button. the error should go away as it is linked to the rendering pipeline not knowing " where to go". ( this is true if you are using the universal rendering pipeline) Hope this works

Still errors, even though the changelog 4.4.1 for XR plugin management says
“- Added Apple visionOS XR provider to the list of known packages.”
lol…?!

Getting the same issue on Unity 2023.2.20f1 with XR Plugin Management 4.4.1

1 Like

Still having the same issue on XR Plugin Management 4.4.1, any solutions

Opening project first with a lower editor version (2022.3.18 for me) and re-opening with the desired one works for me.

Unity 2023.2.20f1 still facing issues on v4.4.1. Pending 4.5 update still in June 2024.

Commenting out #if UNITY_XR_VISIONOS_SUPPORTED in knownpackages.cs for temp work around.

1 Like

I guess this was fixed but why is version 4.5.0 a manual download? If you download the “latest” version of XR Management you still get 4.4.1 and the only way to know there’s a newer, not broken one is to hit up the version history: Changelog | XR Plugin Management | 4.5.0