Cpp-Swift interoperability issue in Xcode 15

I have enabled
SWIFT_OBJC_INTEROP_MODE = objcxx in project level, and tried to access the Swift class in the Cpp header file, like below
#include <MySdk/MySdk-Swift.h>

I want to access SwiftHandler.swift class in CPPFactory.h as this:

static MySdk:: SwiftHandler.swift* GetStorageHandler(const std::string& rcstrSource);

But I'm getting so many errors in the SwiftXxxInteroperability.h class as in the screenshot. Can I get a heads up on the issue?