Unable to find a specification in CocoaPods

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

    You first need to add your Podspec to a private specs repo; this lets CocoaPods find the pod when you try to install it.

    Enter the following in Terminal, making sure you’re still in the framework directory you are trying to add:

    pod repo add [your framework name] [Your framework Git URL]
    pod repo push [your framework name] [your framework .podspec file name]
    

提交回复
热议问题