post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
end
end
end
Add above line at the end of your Podfile. Replace 15.0 with your deployment IOS version. Run Pod Install. Delete Derived Data. Re-Run. Build will succeed.