Failed to build module 'FrameworkName' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced

I have trying to solve this Error but to my luck there is no solution that i found can be right . why this error is showing

This error i am getting when i have created xcframework and try to see if it works in the project and then it gives me error

Failed to build module 'FrameworkName' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced

What could be the Possible Solution for the same ??

Failed to build module 'FrameworkName' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced
 
 
Q