How do I delete my public cocoa pods

若如初见. 提交于 2019-12-19 03:20:44

问题


I have created a couple test cocoa pods that are public I need to delete these not just from my computer but from the public pod list? Is there a way to remove the trunk?


回答1:


To delete these specs entirely you'll need to submit a pull request to the specs repo removing the affected files. If you want to also remove them from the trunk database, you'll have to submit an issue on the trunk repo explaining the situation.




回答2:


In order to complete the @Keith Smiley's response, please find some other important details below:

Can I submit a pull request if...

Q: I want to update my Pod to a new version?

A: No, this is no longer the appropriate way to update your Pod. Pod updates must be uploaded using pod trunk push [NAME.podspec].

Q: I made a mistake in a Podspec I've just pushed?

A: No. The quickest way to get this fixed is to edit your .podspec, bump the version number and pod trunk push [NAME.podspec].

Q: I've deleted this Pod?

A: People are relying on your library, you should apply the deprecated flag via a pull request to all versions of your library. Removal of Podspecs should be avoided as much as possible. This is to ensure systems built around the CocoaPods ecosystem are kept in sync.

Q: No one needs that pod, or is going to ever download it... why can't I just delete it?

A: Our policy is to only perma-delete pods that really need it, such as Pods that may contain passwords, malicious/harmful code, etc. Deprecating a pod effectively removes it from being found and will do the trick in 99% percent of situations.

Q: But what if..

A: Chances are, no.

(Sources of this answer: link 1, link 2)



来源:https://stackoverflow.com/questions/29604049/how-do-i-delete-my-public-cocoa-pods

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!