美文网首页
制作cocoapods

制作cocoapods

作者: 魈畈 | 来源:发表于2017-06-13 17:56 被阅读14次

CocoaPods制作并提交

#进入创建好的本地项目
cd /Users/admin/Desktop/TestDemo/TestPlaySound

#在GitHub上创建同名项目,并通过终端连接远程仓库
git remote add origin git@github.com:Liu-Peng/TestPlaySound.git
git fetch
git merge origin/master master

#创建.podspec文件
pod spec create LPPlaySound
#验证
pod lib lint

#提交到github
git add .
git commit -m "version 0.0.1"
git push origin master
#可以直接使用GitHub Desktop 来管理提交

#创建tag; pod trunk 提交时.podspec文件中版本对应tag
git tag 0.0.2
git push --tags

#注册 trunk 首次会收到邮件,点击确认
pod trunk register liupeng426@126.com 'Liu-Peng' --description='Mac Book Pro' --verbose

pod trunk me  # 查看注册信息,以及发布过得的Pods

cd # 在{project}.podspec文件的路径下执行

pod trunk push LPPlaySound.podspec #提交.podspec文件; 一直不成功;先 git tag (版本对应)就成功了

#返回结果
#
 🎉  Congrats

 🚀  LPPlaySound (0.0.1) successfully published
 📅  June 13th, 02:54
 🌎  https://cocoapods.org/pods/LPPlaySound
 👍  Tell your friends!
#


pod search LPPlaySound #搜不到,可能有延迟需要等一段时间

相关文章

网友评论

      本文标题:制作cocoapods

      本文链接:https://www.haomeiwen.com/subject/difjqxtx.html