美文网首页
使用git创建cocoapods远程公有库

使用git创建cocoapods远程公有库

作者: 李Mr | 来源:发表于2020-10-14 14:13 被阅读0次

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

Git操作

1、

先GitHub账号下创建远程仓库

git clone到本地仓库

cd 到本地仓库目录下,把核心代码拖进本地项目目录下

git add .

git commit -m "fixed bug"

git push origin master    //升级时要这个否则用 git push

或者使用下面的方式进行代码推送

git init

git remote add origin xxxx.git // 你的github仓库地址

git add .

git commit -m "initial commit"

git push

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 你的邮箱地址 ‘用户名’ --verbose)

pod trunk register “邮箱地址" '用户名' --verbose    (可能需要注册,第一次)

5、

pod trunk push MyDemo.podspec --allow-warnings

6、

参考文章:https://juejin.im/post/6868910104620728333#heading-11

相关文章

网友评论

      本文标题:使用git创建cocoapods远程公有库

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