How to Solve "No such module ‘CometChatPro in Xcode" in flutter
- Aarthi Krishnan
- Feb 11, 2024
- 1 min read

Hey guys it’s me, Aarthi Krishnan. In this tutorial, I will show you how to solve ’No such module 'CometChatPro' in Xcode 12.4’
After hours of digging, I found a solution. This error “No such module 'CometChatPro' in Xcode 12.4 ” was caused because of the cocoapods version.
I recently changed my laptop so I newly installed Cocoapod's latest version. So it caused this error in my flutter project. To solve this you need to downgrade your cocoapods version.
Step to downgrade your cocoapods:
Open your terminal. First, know your cocoapods version run
gem which cocoapods
For sudo run:
sudo gem which cocoapods
Once you get to know your cocoapods version then you have to download the old version from your current version. To uninstall the current version run the below command:
sudo gem uninstall cocoapods
Once you successfully deleted your current cocoapods. Then install the older version. In my case I used 1.15.0 so I had to downgrade to 1.14.3. To download the old version run the below command and you have to specify which version you want to downgrade to
sudo gem install cocoapods -v 1.14.3
And also then setup your pod by running the same version you downloaded before for cocoapods like below:
pod_1.14.3_setup
Once you are done make sure by running 'flutter doctor' that everything looks fine. That’s it
That's how i resolve my 'No such module ‘CometChatPro’ in Xcode' in my flutter project. I hope this will save you some time. Happy Coding!
- Aarthi Krishnan
Комментарии