Unable to find a specification in CocoaPods

后端 未结 17 2538
醉酒成梦
醉酒成梦 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:15

    For me it was an issue with finding the spec, not the spec itself. I needed to add a source link to the Podfile, see Podfile documentation

    Cocoapods recently added the need to link to the repo that holds the pod spec file you are looking for, the default is:

    source 'https://github.com/CocoaPods/Specs.git'
    

    You may need to add multiple source links if you are using more obscure or homemade pods.

提交回复
热议问题