. Advertisement .
..3..
. Advertisement .
..4..
The error “Warning: CocoaPods not installed. Skipping pod install” is a common error that can show up in many ways. In this blog, we will go through some of the ways you can fix this issue. Read on.
When Does The Error: “Warning: CocoaPods not installed. Skipping pod install” Occur?
When attempting to run your flutter app in your simulator, you might get the following problem.
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.
How To Solve The Error: “Warning: CocoaPods not installed. Skipping pod install”?
Approach 1: Install Cocoapods
To resolve this issue, firstly, install CocoaPods. If you’re utilizing brew, type:
brew install cocoapods
or
sudo gem install cocoapods
Then, locate the location on your machine where CocoaPods is installed with the following command:
which pod
Next, in the terminal, set the project path. Add the following lines to your ~/.profile:
export PATH="$PATH:/Users/yourname/.gem/ruby-{xyz}/bin"
Now, apply the changes and try running the program again.
Approach 2: Run the following command
To fix this, ignore the pod installation error. Simply use this from the terminal to launch Android Studio:
open /Applications/Android\ Studio.app
Your problem will now be resolved.
Approach 3: Follow the directions to run brew install cocoapods in the terminal
Follow the directions to run brew install cocoapods in the terminal. After some while, downloads began to show up.
les/cocoapods-1.7.5.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/5a/5a70fd60007975ce224824b1a8852ba9124faa6753061d0ecc024be4cebd6e8b?__gda__=exp=1565624237~hmac=b87d5d0111b49f600da053951890
It attempted again after failing when the download reached a small percentage. Over 60% of the time, the outcome failed once again. Fq, which is slower in China, should be used instead.
then began looking for CocoaPods online.
The installation tutorial was difficult to look at as we looked for it.
Then we used the terminal that comes with Android Studio. Execute brew install cocoapods directly. Execution normally takes place in the project root directory.
yechaodeMacBook-Pro:wanandroid_flutter yechao$ brew install cocoapods
Error: Another active Homebrew update process is already in progress. Please wait for it to finish or terminate it to continue.
==> Downloading https://homebrew.bintray.com/bottles/cocoapods-1.7.5.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/5a/5a70fd60007975ce224824b1a8852ba9124faa6753061d0ecc024be4cebd6e8b?__gda__=exp=1565624237~hmac=b87d5d0111b49f600da053951890
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottyechaodeMacBook-Pro:wanandroid_flutter yechao$ pod setup
Setting up CocoaPods master repo
$/usr/local/bin/git clone https://github.com/CocoaPods/Specs.git --progress -- master
Cloning into 'master'...
remote: Enumerating objects: 260, done.
remote: Counting objects: 100% (260/260), done.
remote: Compressing objects: 100% (249/249), done.
Receiving objects: 10% (361304/3368611), 72.04 MiB | 57.00 KiB/s
Try again after finishing to access the iOS simulator.
Okay, the procedure was successful! Your error completely disappeared.
Conclusion
We hope you will enjoy our article about the error. With this knowledge, we know that you can fix your issue: “Warning: CocoaPods not installed. Skipping pod install” quickly by following these steps! If you still have any other questions about fixing this syntax error, please leave a comment below. Thank you for reading!
Read more
Leave a comment