Xcode says a Flutter plugin's Swift package needs a newer iOS
Your error
Target Integrity (Xcode): The package product 'plugin_name_ios' requires minimum platform version 14.0 for the iOS platform, but this target supports 12.01 more line it can showFix it fast
Most common cause, 1 of 2Runner's Minimum Deployments is lower than a plugin's Swift package allows
Open ios/Runner.xcworkspace in Xcode, select the Runner target, and raise Minimum Deployments to the highest version any plugin asks for.
open ios/Runner.xcworkspace
# Runner target > General > Minimum Deployments: 15.0
flutter build ios --config-only
# macOS app:
flutter build macos --config-onlyShort answer
The package product requires minimum platform version 14.0 for the iOS platform, but this target supports 12.0 is a Swift Package Manager error; Flutter uses SwiftPM by default since 3.44. A plugin such as purchases_flutter (iOS 13) or firebase_core 5 (iOS 15) needs a newer iOS than Runner allows. Raise Minimum Deployments, then run flutter build ios --config-only.
Which cause do you have?
Put the version quoted in the error next to the deployment target your project declares. The template writes one line per build configuration (Debug, Release, Profile); if any of them is below the number in the error, start with the first cause, and if all of them are already high enough, go to the second.
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxprojThen find the line you see in this list and open its fix:
- 1Runner's Minimum Deployments is lower than a plugin's Swift package allows
The grep shows a value such as 12.0 or 13.0, below the version named in the error; the project is older than the current template, or the error began after a plugin upgrade - 2The target was raised, but Flutter's generated plugin package still declares the old version
Xcode's Minimum Deployments already meets the version in the error, yet the error comes back with the same numbers
What does the error look like?
Target Integrity (Xcode): The package product 'plugin_name_ios' requires minimum platform version 14.0 for the iOS platform, but this target supports 12.0requires minimum platform version 15.0 for the iOS platform
Cause 1 of 2
Runner's Minimum Deployments is lower than a plugin's Swift package allows
You seeThe grep shows a value such as 12.0 or 13.0, below the version named in the error; the project is older than the current template, or the error began after a plugin upgrade
Check
Swift Package Manager rejects a dependency whose platform floor is above the deployment version of the package that uses it, and the error names the plugin product and both versions. Projects made by flutter create on current releases start at iOS 15.0, so the clash mostly hits older projects. Plugin upgrades raise the floor too: purchases_flutter needs iOS 13.0, and firebase_core 5 moved to Firebase Apple SDK 13, whose minimum is iOS 15.0.
grep -A5 -E "^ (firebase_core|purchases_flutter):" pubspec.lockFix
Open ios/Runner.xcworkspace in Xcode, select the Runner target, and raise Minimum Deployments to the highest version any plugin asks for. Then regenerate Flutter's iOS configuration files. For a macOS app, do the same in macos/Runner.xcworkspace and regenerate with the macos variant of the command.
open ios/Runner.xcworkspace
# Runner target > General > Minimum Deployments: 15.0
flutter build ios --config-only
# macOS app:
flutter build macos --config-onlyVerify
Every IPHONEOS_DEPLOYMENT_TARGET line now shows the new version, and the app builds and launches.
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxproj
flutter runConfirmed by docs.flutter.dev
Cause 2 of 2
The target was raised, but Flutter's generated plugin package still declares the old version
You seeXcode's Minimum Deployments already meets the version in the error, yet the error comes back with the same numbers
Check
Flutter wraps all plugins in one generated Swift package whose platform starts at Flutter's own default. The tool raises that platform to match the project's IPHONEOS_DEPLOYMENT_TARGET only when it regenerates the package, so changing the setting in Xcode alone leaves the generated manifest on the old value, and building from Xcode keeps failing.
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxproj
# every line already meets the version in the error, yet Xcode still failsFix
Let Flutter rewrite its configuration and the generated package from the current project settings, then build again.
flutter build ios --config-only
open ios/Runner.xcworkspaceVerify
The Target Integrity error is gone after a clean build in Xcode or a fresh flutter run.
flutter runConfirmed by raw.githubusercontent.com
How do I stop it coming back?
- When you upgrade a plugin by a major version, read its changelog for a new iOS minimum before running pub upgrade, and raise Minimum Deployments in the same commit.
- Keep all three build configurations of the Runner target on one deployment version, and run flutter build ios --config-only after changing it.
- Leave Swift Package Manager on: the CocoaPods registry turns read-only on 2 December 2026, and Flutter warns that switching SwiftPM off will not stay allowed.
Sources
How was this page made?
I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.
Which stack is behind this page?
Projects of mine on the same stack: SessionBird, Workforce, Dawlance Air.