
申請自己的開源庫以及遇到的部分問題:
1.申請流程第一步當(dāng)然是需要有自己的git倉庫。The world’s leading software development platform · GitHub
同時注意在創(chuàng)建的時候由于私有庫已經(jīng)免費(fèi),所以開源的就不要選成私有的。

2.將代碼傳到倉庫中,具體就不詳細(xì)介紹。
3.將倉庫的代碼clone到本地,注意需要有License文件。

那么假如手殘?jiān)趧?chuàng)建開源庫的時候沒有選擇呢?那么照著圖來吧,記得創(chuàng)建好之后需要提交到代碼里。


4.接下來:
# 查看所有的tag $ git tag
#刪除local一個tag $ git tag -d tagName
# 刪除remote tag "1.0.0"$ git push origin :refs/tags/1.0.0
# 刪除一個遠(yuǎn)程的tag$ git push origin –delete tag 《tagName》
# 將v0.1.2標(biāo)簽提交到git服務(wù)器
$ git push origin v0.1.2 # 將本地所有標(biāo)簽一次性提交到git服務(wù)器
$ git push origin –tags $ git push --tags# push結(jié)束以后千萬不能忘記打tag?。。《襱ag值一定要和s.version保持一致?。。?/p>
$ git tag -m "NHBarScrollTool" 0.1.0
git tag"v1.0.0"?git tag "1.0.0"
git push --tags
若未注冊,需要注冊。具體的注冊請參考:注冊流程
注意點(diǎn):在這里很多網(wǎng)上教程都是指導(dǎo)tag的寫法如上圖git tag "v1.0.0",可想而知報(bào)錯了。

* 解決方案將tag 寫成git tag "1.0.0"? ??問題解決
* 完成之后cd到本地代碼倉庫。
* pod spec create info? ?使用命令行之后

然后打開文件按需修改,此處推薦幾個介紹詳細(xì)的文檔
5.驗(yàn)證?pod spec lint info.podspec --verbose --use-libraries
pod trunk push info.podspec —allow-warnings 忽略警告push版本
然后

接著如果pod serch info 報(bào)錯的話 pod setup,
最后大功告成:
