Error with AVCaptureDataOutput

Hey y’all, I’m getting an issue when trying to build from xcode to visionOS.

Seems like I’m doing something dum. Any thoughts on why this is happening?

This is a known issue and actively being worked on. I don’t have an ETA for release, though.

There is a similar discussion here: Unity_uses_webcam, unity_uses_iap - visionOS / Virtual Reality (Fully Immersive) Apps - Unity Discussions

You might try manually editing the same preprocessor defines and see if you can get around this. Otherwise, you may want to make sure that anything using WebCam in your application is compiled out for VisionOS using #if !UNITY_VISIONOS.

Thank you! I fixed it!

1 Like