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/Runner
folder.Delete the
ios
folder.Create another project with same name as yours.
Paste your Runner backup in the
ios
folder to your new project.Run
pod install
in yourios
directory.Run
flutter clean
theflutter run
.
Hope it works.d