Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages
Flutter and app store releases

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 show

Fix it fast

Most common cause, 1 of 2

Runner'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.

Fix
open ios/Runner.xcworkspace
# Runner target > General > Minimum Deployments: 15.0
flutter build ios --config-only

# macOS app:
flutter build macos --config-only
Did this fix it?
Full steps for this cause: check, fix, verify

Short 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.

  • Applies to Flutter 3.44 to 3.50.x with Swift Package Manager on (the default), firebase_core 5.2.0 (Firebase Apple SDK 13), purchases_flutter 11.0.4
  • Updated
  • By Maaz Zindani, Senior Software Engineer

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.

Run this first
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxproj

Then find the line you see in this list and open its fix:

  1. 1Runner's Minimum Deployments is lower than a plugin's Swift package allowsThe 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
  2. 2The target was raised, but Flutter's generated plugin package still declares the old versionXcode'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.0
  • requires 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.

Check
grep -A5 -E "^  (firebase_core|purchases_flutter):" pubspec.lock

Fix

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.

Fix
open ios/Runner.xcworkspace
# Runner target > General > Minimum Deployments: 15.0
flutter build ios --config-only

# macOS app:
flutter build macos --config-only

Verify

Every IPHONEOS_DEPLOYMENT_TARGET line now shows the new version, and the app builds and launches.

Verify
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxproj
flutter run

Confirmed by docs.flutter.dev

Did this fix it?

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.

Check
grep -n "IPHONEOS_DEPLOYMENT_TARGET" ios/Runner.xcodeproj/project.pbxproj
# every line already meets the version in the error, yet Xcode still fails

Fix

Let Flutter rewrite its configuration and the generated package from the current project settings, then build again.

Fix
flutter build ios --config-only
open ios/Runner.xcworkspace

Verify

The Target Integrity error is gone after a clean build in Xcode or a fresh flutter run.

Verify
flutter run

Confirmed by raw.githubusercontent.com

Did this fix it?

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.

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.