[IOS] yet another issue with CocoaPods?

[IOS] yet another issue with CocoaPods?

Another night, Another IOS struggle with CocoaPods!

Tonight was supposed to be a productive coding session on my projects, but instead, I found myself wrestling with yet another CocoaPods issue. The error message I encountered seemed quite daunting at first:

Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. CocoaPods not installed or not in valid state.

So, how did I resolve this issue? The solution was simpler than I thought.

The first step was to address the uncertainty surrounding the CocoaPods installation. Was it incomplete? Corrupted, perhaps? To eliminate these doubts, I decided to remove CocoaPods completely, ensuring that any broken installations were cleared out. This was achieved by running the following command:

brew uninstall cocoapods

Next, I proceeded to reinstall CocoaPods. This step was crucial to ensure a fresh, uncorrupted installation:

brew install cocoapods

After reinstalling, I ran the following command to make sure CocoaPods was set up correctly:

pod setup

The final step was to restart Visual Studio Code. This was necessary to ensure the IDE was up-to-date with the changes and could integrate properly with CocoaPods.

And there you have it—a simple yet effective fix to a CocoaPods issue in iOS development. These steps might save you time and frustration if you ever encounter a similar problem.

About Me

I am Zaahra, a Google Women Techmakers Ambassador who enjoy mentoring people and writing about technical contents that might help people in their developer journey. I also enjoy building stuffs to solve real life problems.

To reach me:

LinkedIn: https://www.linkedin.com/in/faatimah-iz-zaahra-m-0670881a1/

X (previously Twitter): _fz3hra

GitHub: https://github.com/fz3hra


Umme Faatimah-Iz-Zaahra Mujore | Google Women TechMakers Ambassador | Software Engineer