My flutter app was working fine for android and for iOS the build was failing.
My pod file code was
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
end
end
end
CodePudding user response:
You can try to change your podfile code to
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
CodePudding user response:
If my first solution doesn’t work, you can follow these steps:
Backup
ios/Runnerfolder.Delete the
iosfolder.Create another project with same name as yours.
Paste your Runner backup in the
iosfolder to your new project.Run
pod installin youriosdirectory.Run
flutter cleantheflutter run.
Hope it works.d

