Cocoapods is giving me this error message when calling pod init
:
[!] No Xcode project found, please specify one
I've...
sudo gem install cocoapods
and waited for it to installpod init
Here's my desktop:
What my directory folder "Hello looks like (sudo gem install cocoapods has already finished
What happens when I try to initialize the pod.
Why does that happen?
if you are using REACT NATIVE or FLUTTER ,make sure go to ios folder ,then pod init
cd ios
pod init
Just close the XCode and terminal once then restart the Terminal. Make sure you select the path to your project folder only.
After calling cd /Users/YOUR_USER_NAME/Desktop/PROJECT_NAME
just call a command ~ls
and check if the list of the file contains your PROJECT_NAME.xcodeproj. If this file is available, it means you can now set up pod init
. Otherwise, you should navigate to the next level and find your PROJECT_NAME.xcodeproj.
Hope it helps! :)
Make sure that you are in the correct directory where you .xcodeproj is located.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With