简体   繁体   English

如何强制CocoaPods使用最新版本的Github存储库?

[英]How to force CocoaPods to use the latest release for a Github repo?

I am trying to create my first CocoaPods Printer . 我正在尝试创建我的第一台CocoaPods 打印机 I have gone through all the steps which are required to create your own. 我已经完成了创建自己的所有步骤。 This is the latest release version to which I want my pod to point. 这是我希望Pod指向的最新发行版。 But somehow the pod is pointing to some other version which I have deleted to overcome "duplicate entry" error. 但是以某种方式,广告连播指向的是我为了克服“重复输入”错误而删除的其他版本。 What should I do to force CocoaPods to use the latest release available? 如何强制CocoaPods使用可用的最新版本? For a note, if you could check the pod on the CocoaPods it has a difference of "stars" received for the repo. 需要注意的是,如果您可以在CocoaPods上检查豆荚,则回购收到的“星号”会有所不同。 I am not sure what I am doing wrong here? 我不确定我在做什么错吗?

This is the Podspec file for that repo. 这是该存储库的Podspec文件。

You should update your repo. 您应该更新您的仓库。 Go to Terminal then enter: 转到终端,然后输入:
pod repo update --verbose
--verbose is used to show everything happening on the terminal. --verbose用于显示终端上发生的所有事情。
after the update finishes try pod install 更新完成后,尝试pod install
ScreenShot of the class Printer.swift Printer.swift 类的ScreenShot

Thanks, King T. for help through. 谢谢T. King的帮助。 Finally, I read this comment on this answer, 最后,我阅读了有关此答案的评论,

When this happens to me I usually just remove the line from my Podfile, run pod install, re-add the line and re-run pod installs. 当发生这种情况时,我通常只是从Podfile中删除该行,运行pod安装,重新添加该行并重新运行pod安装。 Maybe there is a better way but this one is pretty simple. 也许有更好的方法,但是这很简单。

And that work for me. 那对我有用。

Force updating Cocoapod with same tag 强制使用相同标签更新Cocoapod

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM