Unable to find a specification in CocoaPods

后端 未结 17 2441
醉酒成梦
醉酒成梦 2020-12-07 15:31

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?

相关标签:
17条回答
  • 2020-12-07 16:01

    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
    
    0 讨论(0)
  • 2020-12-07 16:04

    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.

    0 讨论(0)
  • 2020-12-07 16:04

    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.

    0 讨论(0)
  • 2020-12-07 16:07

    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.

    0 讨论(0)
  • 2020-12-07 16:11

    Follow the below steps :

    Step 0: pod repo update master

    Step 1: pod install

    And you are done!

    0 讨论(0)
  • 2020-12-07 16:11

    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! :)

    0 讨论(0)
提交回复
热议问题