Error Running Pod Install
This article addresses the common Error Running Pod Install issue, which typically occurs due to misconfiguration of Flutter or CocoaPods on macOS devices.
Prerequisites
- Flutter is installed on your development machine.
- You are working on a macOS device.
- Basic familiarity with terminal commands.
Steps to Fix Error Running Pod Install:
-
Verify Flutter is set up correctly by following the official guide: Flutter - Get Started: Install on macOS.
-
For troubleshooting specific to macOS, consult this guide: Troubleshooting Flutter on macOS.
-
Run
flutter doctor
in the terminal to check for missing dependencies or configuration issues. -
Ensure CocoaPods is installed and up to date by running the following commands:
sudo gem install cocoapods
pod repo update -
If the problem persists, try deleting the CocoaPods cache and reinstalling:
flutter clean
flutter pub get
cd ios
pod install
Deleting the ios/Pods
directory and ios/Podfile.lock
file before running pod install
can help resolve lingering CocoaPods issues.