CocoaPods pod install 问题

460 阅读1分钟

在ReactNative项目中运行pod install报警告

Your project does not explicitly specify the CocoaPods master specs repo.

Since CDN is now used as the default, you may safely remove it from your 

repos directory via `pod repo remove master`. To suppress this warning 

please add `warn_for_unused_master_specs_repo => false` to your Podfile.

查看本地的repo

SLATTEMacBook-Pro:~ szewec$ pod repo list


cocoapods

- Type: git (master)

- URLhttps://github.com/CocoaPods/Specs.git

- Path: /Users/slatte/.cocoapods/repos/cocoapods


trunk

- Type: CDN

- URL:  https://cdn.cocoapods.org/

- Path: /Users/slatte/.cocoapods/repos/trunk

2 repos

最后,在podfile指定source,警告消失了。

source 'https://github.com/CocoaPods/Specs.git'