iOS创建私有库
创建本地私有库索引和远程私有库索引关联
pod repo add SGSpecs http://120.27.45.57:18080/liuqw/SGSpecs.git
1.创建远程代码库
gitLab 创建远程代码库->设置可访问人员
创建本地代码库
pod lib create 组件名 如:pod lib create YYTest
把需要的文件拖入到本地代码库下面路径
2 修改podspec
3.提交组件到远程代码库并 打tag
git add .
git commit -m "提交内容"
(fatal: not a git repository (or any of the parent directories): .git 这一步如果报这个错,用'git init'命令执行一下)
git remote add origin http://120.27.45.57:18080/qiaobf/AESCipher
git push origin master
git tag 版本号 (注:这里的版本号必须和podspec里写的版本号一致)
git push --tags
4.通过pod spec lint --verbose --allow-warnings 命令验证podspec索引文件
5.验证通过后,pod repo push <本地索引库> <索引文件名> --verbose --allow-warnings 提交索引文件到远程索引库。
如:pod repo push SGSpecs YYTest.podspec --verbose --allow-warnings
第5步命令如果报错 (如下图),增加一句命令pod repo add SGSpecs http://120.27.45.57:18080/liuqw/SGSpecs.git