您的当前位置:首页正文

cocoapods 新建

来源:花图问答

注册trunk

查看trunk

pod trunk me

添加维护者

1.新建私有库

2.新建.podspecs 文件

pod spec create filename

3.验证.podspecs文件

pod lib lint

提交代码 并打上tag

git add -A

git commit -m "first commit for version 1.0.0"

git push origin master

git tag '1.0.0'

git push --tags

提交trunk

pod trunk push ***.podspec

若查不到则

pod setup

可以查看是否提交成功