美文网首页
制作cocoapods笔记

制作cocoapods笔记

作者: 东北小小猿 | 来源:发表于2018-02-06 16:06 被阅读25次

1.pod repo list     //本机repo list

2.pod repo remove xxx //删除本机 xxx repo

3.$ pod repo add REPO_NAME SOURCE_URL

> REPO_NAME: repo 名称

> SOURCE_URL: 指向的地址

//如$ pod repo add lalal git@git.lalala.git

4.$cd~/.cocoapods/repos/lalal

$ pod repo lint .   检查是否添加成功

5.WARN | [iOS] license: Unable to find a license file 报错,  将s.license 改为  { :type => "MIT", :file => "LICENSE" }

6.pod repo push 私有repo XXX.podspec --use-libraries --allow-warnings 将podspec推送到私有repo

7.pod trunk push xxxx.podspec --use-libraries --allow-warnings //推送给cocoapods时引用了三方pod 忽略警告
8.pod lib lint --use-libraries --allow-warnings 验证库
9.pod spec create <名字> 创建podspec
10.pod repo update <repo名字> 更新私有源

11.pod spec create testName
12.--sources=https://github.com/testAtest.git,https://github.com/CocoaPods/Specs.git //依赖了私有源

相关文章

网友评论

      本文标题:制作cocoapods笔记

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