Cocoapods之发布pods的准备

  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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容