Failed to build module: the textual interface may be broken by project issues or a compiler bug

Hello everyone!

I have a C Code project that is being wrapped by Swift Code and I'm building the source into an XCFramework that supports all Apple platforms and architectures (with the help of CMake and Conan). I'm having trouble getting this XCFramework to work properly though, since I'm getting this error when importing the module to a dummy Xcode project:

Failed to build module 'ModuleName' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug

There is no "error above", only this one. I tried using @_implementationOnly tags with the C module imports in the Swift Source code as that has helped before with similar errors but nothing has worked yet.

I truly appreciate any help/advice/guidance!