Failed to build module 'Framework' 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 am trying to use xcframework with cocoapods but when I run the project with generic device always I get this error please I need to know if that is bug from swift compiler.
I have created universal XCframework by terminal commands and when using this universal XCFramework in a project then it gives same error.

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

Please help.
@sanjeevworkstation

Have you fixed the issue? Any tips? I got the same error when using a xcframework I created.

Umbrella header "xxFramework.h" not found.
Could not build Objective-C module...
Failed to build module....

Using the framework directly is fine.
Update Cocoapods to at least 1.10
Code Block
sudo gem install cocoapods -n/usr/local/bin -v 1.10.0.rc.1


Update Cocoapods to at least 1.10
Code Block
sudo gem install cocoapods -n/usr/local/bin -v 1.10.0.rc.1

It helped me. I've installed cocoapods v. 1.10.0. I also cleaned project, the build forlder and derived data, restarted XCode and then this issue finally gone
Code Block
I have created universal XCframework by terminal commands and when using this universal XCFramework in a project then it gives same error.
Error:
"Failed to build module 'PROJECT_NAME' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced" 
Please help.


same mistake

Does anyone has got the Solution for this ??

hit by the same error!

Failed to build module 'Framework' 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