关于使用Git创建Cocoapods公有库的流程和命令

2018-06-15  本文已影响10人  李Mr

使用git创建cocoapods远程公有库时的一些操作流程

Git操作

1、

先GitHub账号下创建远程仓库

git clone到本地仓库

cd 到本地仓库目录下

git add .

git commit -m“fixed bug”

git push origin master    //升级时要这个

2、

//创建spec文件

pod spec create MyDemo

修改spec文件配置

3、

打tag

git tag“0.0.1”

git push --tags

4、检验spec文件

pod lib lint --allow-warnings

pod trunk register zy_iOS2163.com 'zy' --description='macbook air' --verbose    (可能需要注册,第一次)

5、

pod trunk push MyDemo.podspec --allow-warnings

6、

上一篇 下一篇

猜你喜欢

热点阅读