[!] 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.
- 解决方法一:在podfile文件中加入
install! 'cocoapods', :warn_for_unused_master_specs_repo => false
屏幕警告的方法.(但是这种方法只是不让报警告了并没实时在在解决警告)
project 'JCTestDemo.xcodeproj'
platform :ios, '8.0'
use_frameworks!
install! 'cocoapods', :warn_for_unused_master_specs_repo => false
- 解决方法二:在podfile文件中指定
source 'https://github.com/CocoaPods/Specs.git'
,警告消失。(个人建议使用这种解决方法)
project 'JCTestDemo.xcodeproj'
platform :ios, '8.0'
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'