Building project results in UIScreen is unavailable error

While trying to compile an existing project that we have for Vision we get the following compile errors in UnityFramework’s DisplayManager.h: ‘UIScreen’ is unavailable. (shown below in the screenshot)


It also mentions that TARGET_OS_XR is not defined.

My question is, does anybody know what could cause this to happen? It seems to have something to do with UI but I’m unsuccessful in trying to pinpoint the cause myself. Any help would be appreciated!

Seems like I was partially blind and missed this topic: