CocoaPods制作并提交
#進(jìn)入創(chuàng)建好的本地項目
cd /Users/admin/Desktop/TestDemo/TestPlaySound
#在GitHub上創(chuàng)建同名項目,并通過終端連接遠(yuǎn)程倉庫
git remote add origin git@github.com:Liu-Peng/TestPlaySound.git
git fetch
git merge origin/master master
#創(chuàng)建.podspec文件
pod spec create LPPlaySound
#驗證
pod lib lint
#提交到github
git add .
git commit -m "version 0.0.1"
git push origin master
#可以直接使用GitHub Desktop 來管理提交
#創(chuàng)建tag; pod trunk 提交時.podspec文件中版本對應(yīng)tag
git tag 0.0.2
git push --tags
#注冊 trunk 首次會收到郵件,點(diǎn)擊確認(rèn)
pod trunk register liupeng426@126.com 'Liu-Peng' --description='Mac Book Pro' --verbose
pod trunk me # 查看注冊信息,以及發(fā)布過得的Pods
cd # 在{project}.podspec文件的路徑下執(zhí)行
pod trunk push LPPlaySound.podspec #提交.podspec文件; 一直不成功;先 git tag (版本對應(yīng))就成功了
#返回結(jié)果
#
?? Congrats
?? LPPlaySound (0.0.1) successfully published
?? June 13th, 02:54
?? https://cocoapods.org/pods/LPPlaySound
?? Tell your friends!
#
pod search LPPlaySound #搜不到,可能有延遲需要等一段時間
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。