How to create cocoa pods?

假装没事ソ 提交于 2020-02-17 18:09:04

问题


I have a repo on github. I want to publish it as cocoa pod. I tried hard but couldn't find any frank tutorial.

http://guides.cocoapods.org/making/specs-and-specs-repo.html

teaches how to create spec file and how to update your existing pod , but doesn't tell how to create a new one.

while following https://github.com/CocoaPods/CocoaPods/wiki/Creating-and-maintaining-a-pod , tutorial, i am facing errors after executing "$ pod push master" command, it says,

Pushing the `master' repo

remote: Permission to CocoaPods/Specs.git denied to HarshitDaftary.
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': The requested URL returned error: 403

Kindly help me.


回答1:


You are apparently not (yet) a contributor to the CocoaPods/Specs.git repository. To add your pod to the public list you will need to fork that repo, push to that fork, and submit a pull request to have your addition merged into the upstream repository. See the "If you do not have push access to CocoaPods/Specs" section on http://guides.cocoapods.org/making/specs-and-specs-repo.html



来源:https://stackoverflow.com/questions/20755877/how-to-create-cocoa-pods

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