美文网首页
3篇文章带你学会组件化

3篇文章带你学会组件化

作者: JMong | 来源:发表于2023-07-06 17:14 被阅读0次

3篇文章带你学会组件化😁😁😁
1.iOS 创建远程cocoapods 私有库
2.iOS Pod 私有库创建(自定义的组件)
2-1.可能遇到的问题:
https://blog.csdn.net/weixin_42488513/article/details/120121769
3.iOS CTMediator组件化实践

组件化结构设计


e7c343bbc6444ca5adde8db160cf0787.png

【Git常用命令】

索引库

pod repo #查看本地索引库

pod repo add JMSpec https://github.com/zxgy/JMSpec.git #创建本地索引库JMSpec,并和远程索引库(后面的url)做关联

代码库

pod lib create JMIMKit #创建本地代码库,JMIMKit为此代码库名称

/// 提交改动并发版(打tag)

git add . #添加改动文件到暂存区

git commit -m “xxx” #提交改动文件到本地仓库

git remote add origin 远程代码仓库地址 #关联远程仓库地址

git remote -v #查看仓库详情,如果返回为空则代表本地没有这个代码地址的仓库,需要重新添加

git push origin master 或者 git push -u origin master(一般第一次提交用) #推送改动到远端

git tag 版本号/git tag -a 版本号 -m “version 版本号”(注:这里的版本号必须和podspec里写的版本号一致)

git tag 查看版本号是否提交成功

git push - -tags

常见问题

Q:github上传代码报错remote: Support for password authentication was removed on August 13, 2021
A:https://blog.csdn.net/weixin_42488513/article/details/120121769

查看Git配置

git config --list

image.png

重新配置

git config --global user.name 'xxxx'

git config --global user.email 'xxxx@163.com'

相关文章

网友评论

      本文标题:3篇文章带你学会组件化

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