My bad, i was crazy tired. I have an extremely similar problem, maybe not the same. Well out of a user perspective, it’s the same. It’s the same error:
Failed to build module 'MODULE' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
If you don’t mind, here is the link to the stackoverflow thread i created earlier https://stackoverflow.com/questions/69473492/xcode-xcframework-errors-like-unknown-attribute-combine-published
I use Xcode 13.