美文网首页私有pod
pod私有库依赖私有库 验证及上传方式

pod私有库依赖私有库 验证及上传方式

作者: 晨煜煌 | 来源:发表于2018-05-07 21:13 被阅读0次

依赖第三方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

相关文章

网友评论

    本文标题:pod私有库依赖私有库 验证及上传方式

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