美文网首页
关于使用Git创建Cocoapods公有库的流程和命令

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

作者: 李Mr | 来源:发表于2018-06-15 17:00 被阅读10次

使用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、

相关文章

网友评论

      本文标题:关于使用Git创建Cocoapods公有库的流程和命令

      本文链接:https://www.haomeiwen.com/subject/copmeftx.html