创建pod并发布后,pod install未安装它

时间:2020-10-29 01:47:26

标签: ios xcode cocoapods

我按照CocoaPods.org的指南创建了一个pod,之后,每当我尝试将其安装到新项目中时,都会出现此错误 enter image description here

这是它的链接https://github.com/mozead1996/MZStoryPreviewer

1 个答案:

答案 0 :(得分:0)

我的猜测是新项目中的podfile配置不正确。

您的Pod尚未在Cocoapods中正式列出,因此自述文件中所述的简单pod 'MZStoryPreviewer'无效。

您可以通过注册您的pod来解决此问题(看看here以了解操作方法),也可以通过指定github repo来更新您的podfile,然后pod install再次):

pod ‘MZStoryPreviewer’, :git => 'https://github.com/mozead1996/MZStoryPreviewer'