美文网首页
Github 公有库笔记

Github 公有库笔记

作者: SoaringHeart | 来源:发表于2018-10-16 09:16 被阅读26次
cd  BN_Utils

pod spec create BN_Utils

//拖入代码 ,修改spec,提交到git
pod lib lint --allow-warnings

pod trunk register shang1219178163@gmail.com 'shang1219178163' --description=“CocoaPods lib."
pod trunk me

//添加版本
git tag -a 1.1.1 -m ‘1.0’ 
git push origin --tags

pod spec lint --allow-warnings --use-libraries
pod spec lint --verbose --use-libraries


pod trunk push BN_Kit.podspec --allow-warnings

———————————————————————————————
//补充命令
pod cache clean --all
pod trunk delete PODNAME VERSION
pod trunk deprecate PODNAME

git tag -d
git remote -v

pod update --no-repo-update
pod update BNKit --no-repo-update
pod update --verbose --no-repo-update
———————————————————————————————

git tag -a 1.0.0 -m ‘1.0’ 
git tag -a 1.1.0 -m ‘1.0’ 
git tag -a 1.1.2 -m ‘1.0’ 
git tag -a 1.1.3 -m ‘1.0’ 
git tag -a 1.1.4 -m ‘1.0’ 
git tag -a 1.1.5 -m ‘1.0’ 
git tag -a 1.1.6 -m ‘1.0’ 
git tag -a 1.1.7 -m ‘1.0’ 
git tag -a 1.1.8 -m ‘1.0’ 
git tag -a 1.1.9 -m ‘1.0’ 

//注意:
1.pod spec lint --allow-warnings 拉取的库的是.podspec文件中源为s.source的值路径,版本为s.version的值得版本
(一般更新库应该先修改s.version值,然后添加版本git tag,最后执行pod spec lint --allow-warnings)

2.我们平时点击Clone or download->Download Zip就是下载的包含了源码,和Demo代码,比较大。后两个是源码,不含Demo。
后面两个压缩方式格式不同,.zip格式用于windows,tar.gz 格式多用于 Unix/linux MacOS 系统。

3.提交代码到公有库的时候经常出现之前有的代码删除之后,新提交的没有,但是pod spec lint 的时候显示老代码报错,
一直不通过,此时创建新tag,并把.podspec文件里的s.version改为tag的版本值即可.

BN_Utils

相关文章

网友评论

      本文标题:Github 公有库笔记

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