Cocoapods之发布pods的准备

  1. 注册trunk

pod trunk register EMAIL [NAME]

pod trunk register [email protected] 'Clintlin' --verbose

[!] Please verify the session by clicking the link in the verification email that has been sent to [email protected]

pod trunk me

Cocoapods之发布pods的准备_第1张图片
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的准备)