依赖第三方pod时需要在podspec文件中添加
> s.dependency '第三方库名'
#验证方式
```
pod spec lint **.podspec --verbose --sources='私有库地址,https://github.com/CocoaPods/Specs.git'
```
sources 第一表示私有库地址;第二个表示pod公有库地址,若无引用公有第三方可以添加
#上传方式
pod repo push 本地repo名 podspec名 --sources='私有仓库repo地址,https://github.com/CocoaPods/Specs'
ps: pod lib lint 表示在本地验证 pod spec lint 表示在本地和远程都验证 所以建议使用pod spec lint 做验证
Reject installation if a static library is used as a transitive dependency while using frameworks
网友评论