// You need to exclude architecture arm64 if you are using M1 mac.
// Also add this code at the end of the pod file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end
end
end
// Do pod install, Clean the build folder and restart the
// build it will resolve the issue.