创建私有库
命令:pod lib create HNTest
注意:此处HNTest为你的组件名称


私有库创建完成并引入相关联框架

修改工程podfile文件,引入本地私有库

进入工程私有库文件夹 然后在码云创建私有库,并选择导入已有项目

测试添加新的文件进入私有库

给私有库打上标签,并提交本地配置文件

进入到项目工程中,修改podfile文件,引入远程私有库

创建新文件提交到远程私有库,发现工程里并没有更新下来

重新打上标签,然后修改项目中的podfile文件为新的版本号,更新下来新代码

注意:~/.cocoapods/repos

如果碰到提交podspec文件,提交不上去的时候,可粘贴复制一份原来的版本进行修改,然后pod search HNTest试一下

创建索引


移除索引

网友评论