文档

iOS端Pods集成SDK常见问题及解决方案汇总

更新时间:

阿里云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)
文档反馈