'FrameworkName' is not a member type of 'FrameworkName' errors inside swiftinterface

So, I've run into this same issue and am beginning to use the workaround of renaming the module. One big worry I have though is that the .swiftinterface is essentially invalid, but the compiler did not catch that until another package tried to consume it.

Is there some build setting I can enable to tell the compiler to validate the .swiftinterface it is generating? If not, I will file a bug to have that added. "Module stability" doesn't really exist if the .swiftinterface is invalid.