HttpDns for iOS: CocoaPods integration FAQ and solutions

更新时间:
复制 MD 格式

Specify the Alibaba Cloud pod repository

  • Add `source` to your Podfile to use the Alibaba Cloud private pod repository.

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/aliyun/aliyun-specs.git'

Why can't pod search find the specified SDK?

  • Run `pod repo add` to pull the pod repository.

pod repo add AliyunRepo https://github.com/aliyun/aliyun-specs.git

Or

  • Manually pull the pod repository into the CocoaPods repository folder (default: `~/.cocoapods/repos`).

git clone https://github.com/aliyun/aliyun-specs.git ~/.cocoapods/repos/
  • Run `pod repo list` to view your local pod repositories.

pod repo add or git clone failed?

  • Check the error message. This failure is usually caused by an issue with your GitHub account's public key configuration.

  • For more information about Pod commands, see the official documentation.