3篇文章帶你學(xué)會(huì)組件化??????
1.iOS 創(chuàng)建遠(yuǎn)程cocoapods 私有庫(kù)
2.iOS Pod 私有庫(kù)創(chuàng)建(自定義的組件)
2-1.可能遇到的問(wèn)題:
https://blog.csdn.net/weixin_42488513/article/details/120121769
3.iOS CTMediator組件化實(shí)踐
組件化結(jié)構(gòu)設(shè)計(jì)
【Git常用命令】
索引庫(kù)
pod repo #查看本地索引庫(kù)
pod repo add JMSpec https://github.com/zxgy/JMSpec.git #創(chuàng)建本地索引庫(kù)JMSpec练湿,并和遠(yuǎn)程索引庫(kù)(后面的url)做關(guān)聯(lián)
代碼庫(kù)
pod lib create JMIMKit #創(chuàng)建本地代碼庫(kù)肆汹,JMIMKit為此代碼庫(kù)名稱
/// 提交改動(dòng)并發(fā)版(打tag)
git add . #添加改動(dòng)文件到暫存區(qū)
git commit -m “xxx” #提交改動(dòng)文件到本地倉(cāng)庫(kù)
git remote add origin 遠(yuǎn)程代碼倉(cāng)庫(kù)地址 #關(guān)聯(lián)遠(yuǎn)程倉(cāng)庫(kù)地址
git remote -v #查看倉(cāng)庫(kù)詳情荐捻,如果返回為空則代表本地沒(méi)有這個(gè)代碼地址的倉(cāng)庫(kù),需要重新添加
git push origin master 或者 git push -u origin master(一般第一次提交用) #推送改動(dòng)到遠(yuǎn)端
git tag 版本號(hào)/git tag -a 版本號(hào) -m “version 版本號(hào)”(注:這里的版本號(hào)必須和podspec里寫(xiě)的版本號(hào)一致)
git tag 查看版本號(hào)是否提交成功
git push - -tags
常見(jiàn)問(wèn)題
Q:github上傳代碼報(bào)錯(cuò)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
重新配置
git config --global user.name 'xxxx'
git config --global user.email 'xxxx@163.com'