ref – https://developer.apple.com/forums/thread/123790
I usually have this problem when a dependency is not updated.
Delete your Podfile.lock (I like to use the command ‘-rm -rf Podfile.lock’ on the terminal for this)
Delete your Pods folder (I like to use the command ‘-rm -rf Pods’ in the terminal for this)
Pod install
Clear your project in XCode > Product > Clean Build Folder