CocoaPods is a popular community lead dependency manager for iOS development. It is essentially the equivalent of npm for the web community. Flutter requires CocoaPods in its build process to link any libraries you have added to your project:
- To install cocoapods, type this command:
sudo gem install cocoapods
- Since this command requires administrator privileges, you will likely be prompted to enter your password before continuing. This should be the same password that you use to log in to your computer.
- After cocoapods has finished installing, type this command:
pod setup
This will configure your local version of the cocoapods repository, which can take some time.