文档

HttpDns iOS : CocoaPods 集成常见问题及解决方案

更新时间:

阿里云 Pod 仓库指定

  • 需配置阿里云 Pod 私有仓库,在 Podfile 中添加 source
  1. source 'https://github.com/CocoaPods/Specs.git'
  2. source 'https://github.com/aliyun/aliyun-specs.git'

pod search 为什么搜索不到指定 SDK ?

  • 执行 pod repo add 拉取 Pod 仓库到本地;
  1. pod repo add AliyunRepo https://github.com/aliyun/aliyun-specs.git

  • 手动拉取 Pod 仓库工程到 CocoaPods 仓库目录(默认为~/.cocoapods/repos);
  1. git clone https://github.com/aliyun/aliyun-specs.git ~/.cocoapods/repos/
  • 可执行 pod repo list 查看本地 Pod 仓库信息。

pod repo addgit clone 失败 ?

  • 仔细核对错误信息,一般为github账号publicKey配置问题。

  • 【附】Pod 命令使用可参考 官方文档

  • 本页导读 (0)
文档反馈