I cannot understand why the Cocoapod is unable to find the pod specification I created when I run pod install
. Could someone help me solve this trouble?
I suppose that there is a problem with your pod master repo. Delete it and download it again.
You can do:
pod repo remove master
pod setup
pod install
Or:
sudo rm -fr ~/.cocoapods/repos/master
pod setup
pod install
I resolve this after add
source '/Users/username/Documents/path/to/iOS_SpecsRepository'
source 'https://github.com/CocoaPods/Specs.git'
to Podfile. well .I used a local repository as my Repo. So i can user this in another podspec file
s.dependency 'iOS_Networking_CPN', '~> 0.1.1'
iOS_Networking_CPN
is in the local path.
I was getting similar error for MGBoxkit
[!] Unable to find a specification for
MGBoxkit
By replacing the following line
pod 'MGBoxkit'
with
pod 'MGBoxKit'
fixed the issue.
use tis instead. Using private pod and public pod in the same project
add the souce for both private and public(official) in the beginning of the podfile.
Follow the below steps :
Step 0: pod repo update master
Step 1: pod install
And you are done!
None of the answers helped me. Ultimately i figured out that I had a typo spelling mistake for one of the Pods.
Ex:- Firebaseresulrereres/Analytics
. It was supposed to be Firebase/Analytics
but without my knowledge the pod name had a wrong spelling like Firebaseresulrereres/Analytics
.
Correcting the Pod Name did the trick for me!. It cost me 1 hour to find this though!. Development can be ambiguous and frustrating some times! :)