"VisionKit not available for macOS" - MacCatalyst

"VisionKit is not available when building for macOS. Consider using #if !os(macOS) to conditionally import this framework."

I am facing this error when using Mac catalyst. But in VisionKit documentation it is saying available for Mac catalyst.
Answered by Frameworks Engineer in 669302022
VisionKit is available for Catalyst. Your project appears to be building for macOS, not Catalyst.
Accepted Answer
VisionKit is available for Catalyst. Your project appears to be building for macOS, not Catalyst.
"VisionKit not available for macOS" - MacCatalyst
 
 
Q