Error running pod install is Flutter’s summary line, not the cause. The real reason is printed just above it, and Flutter (3.35 and 3.50) recognises the common cases and adds its own hint. Find yours below.
All commands run on a Mac, in your project folder unless they start with cd ios.
1. “CocoaPods not installed or not in valid state”
Flutter needs the pod command to build iOS apps with plugins. flutter doctor shows the same problem under Xcode. Install it:
brew install cocoapods
pod --version
sudo gem install cocoapods also works, but the Homebrew version avoids most Ruby permission problems. Flutter 3.35 and 3.50 refuse CocoaPods older than 1.10.0 and recommends 1.16.2 or newer. If pod exists but is broken, Flutter says “CocoaPods is installed but broken”. Reinstall it the same way. If you installed it with gem before, uninstall that copy first (sudo gem uninstall cocoapods) so only one is on your PATH.
2. “CocoaPods’s specs repository is too out-of-date to satisfy dependencies”
Your local copy of the pod index doesn’t know about a version a plugin needs. This usually happens right after upgrading Firebase or another plugin:
cd ios
pod install --repo-update
cd ..
pod repo update followed by pod install does the same in two steps.
3. “requires a higher minimum iOS deployment version”
Flutter prints the plugin and the version it needs:
Error: The plugin "some_plugin" requires a higher minimum iOS deployment version than your
application is targeting.
To build, increase your application's deployment target to at least 15.0 ...
Set the version in two places so they match:
-
ios/Podfile: uncomment and set the platform line at the top:platform :ios, '15.0' -
Xcode: open
ios/Runner.xcworkspace, select the Runner target, then General → Minimum Deployments, and set the same version.
New projects from Flutter 3.35 and 3.50 already use iOS 15.0 in both places. Older projects often still say 12 or 13. Then run cd ios && pod install.
4. ffi errors on an Apple Silicon Mac
If the log mentions ffi on an M-series Mac, Flutter suggests reinstalling the Ruby ffi gem:
sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc
Installing CocoaPods with Homebrew (step 1) usually avoids this problem entirely.
5. “CocoaPods could not find compatible versions for pod …”
Two plugins want different versions of the same pod, or Podfile.lock pins an old one. Try the steps in order:
cd ios
pod install --repo-update # often enough
pod update NameOfThePodInTheError # only that pod
cd ..
If it still fails, upgrade the Flutter plugins that pull in that pod (flutter pub upgrade or flutter pub outdated to see which). Firebase plugins in particular should all move together. The Flutter package checker lists outdated packages from your pubspec.yaml.
Last resort: a clean reinstall
flutter clean
rm -rf ios/Pods ios/Podfile.lock
flutter pub get
cd ios && pod install --repo-update && cd ..
Deleting Podfile.lock lets every pod move to the newest version your plugins allow. That’s usually what you want, but commit the new lock file so your team and CI build with the same versions. Always open Runner.xcworkspace, not Runner.xcodeproj, after pods are installed.
Once the build works, the next iOS upload problems are usually ITMS-90683 missing purpose strings and the privacy manifest.
Frequently asked questions
How do I fix "Error running pod install" in Flutter?
Read the error printed just above that line. If CocoaPods is missing, install it with brew install cocoapods. If the specs repository is out of date, run pod install –repo-update in the ios folder. If a plugin needs a higher iOS version, set platform :ios, ‘15.0’ in ios/Podfile and the same Minimum Deployments in Xcode.
What CocoaPods version does Flutter need?
Flutter 3.35 and 3.50 need at least CocoaPods 1.10.0 and recommends 1.16.2 or newer. Check yours with pod –version.
Where do I set the iOS deployment target in Flutter?
In two places that should match: the platform :ios line at the top of ios/Podfile, and Runner target, General, Minimum Deployments in Xcode. New Flutter 3.35 and 3.50 projects use 15.0.
Is it safe to delete Podfile.lock?
Yes, pod install recreates it. Pods may update to newer versions within what your plugins allow, so build and test afterwards and commit the new Podfile.lock.
Stuck on a build or a store release? I fix and maintain Flutter apps, or tell me about your project. More fixes: all Flutter answers.