问题
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