打造本地私有索引库

161 阅读1分钟

私有库:只能团队内的人能使用

1.创建本地文件夹


 

2.git init  生成代码仓库

2.1架构的课件中加了git add .     git commit  --m 'd'

3. pod spec create LocalLib 创建spec文件

4.修改spec文件



5.pod lib lint   然鹅还是没有通过校验,不管,后面有优化.

6.pod install

缺点:

1.自己手动创建git 

2.自己创建spec文件

3.测试不方便,没有测试工程.测试需要把所有代码拖到测试工程.


私有库的优化:

使用pod模板库优化

步骤:

1.pod lib create 名字