创建代码
git tag '1.0.0' git push --tags git push origin master
创建${PROJECT_NAME}.podspec pod
修改${PROJECT_NAME}.podspec
校验${PROJECT_NAME}.podspec pod lib lint
pod repo add REPO_NAME SOURCE_URL
pod repo push ${PROJECT_NAME} ${PROJECT_NAME}.podspec
使用
1.pod search ${PROJECT_NAME}
2.
在 Podfile 的顶部添加如下两行代码:
source 'https://github.com/CocoaPods/Specs.git' #官方仓库地址 source ‘https://github.com/${USER}/${PROJECT_NAME}..git’ #私有仓库地址