I just updated all packages that were getting errors. Just make sure the version of the package has changed. After updating, clear the build folder and try again. It helped me
Post
Replies
Boosts
Views
Activity
Fixed the problem by reinstalling the libraries (instead of SPM I installed them using CocoaPods)
Thanks everyone