美文网首页
Cocoapods之发布pods的准备

Cocoapods之发布pods的准备

作者: 不爱用句号的家伙 | 来源:发表于2017-08-04 17:51 被阅读0次
  1. 注册trunk

pod trunk register EMAIL [NAME]

pod trunk register linguanjie@gmail.com 'Clintlin' --verbose

[!] Please verify the session by clicking the link in the verification email that has been sent to linguanjie@gmail.com

pod trunk me

after login
  1. 确保githup上的代码是最新的
// 如果Githup上没有项目先创建 例如 AGScreenRecorder
echo "# AGScreenRecorder" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Clintlin/AGScreenRecorder.git
git push -u origin master

git add -A
git commit -m"first commit for version 1.0.0"
git push origin master

  1. 检查并上传

podspec 中的 name, author, summary, or description 是不是有 项目的名称

pod lib lint
pod trunk push xxxx.podspec --verbose

  1. 如果搜索不到

rm ~/Library/Caches/CocoaPods/search_index.json
然后

pod search your_pods_name

相关文章

网友评论

      本文标题:Cocoapods之发布pods的准备

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