技術ブログ

プログラミング、IT関連の記事中心

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_

目次

警告メッセージ

以下のコマンドを実行した際に

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.

対応方法

「警告」なので、無視でも問題はありませんが、気になる場合には、以下のようにPodfileを修正することで警告を表示しないようにできます。

~~~~省略~~~~
use_frameworks!

install! 'cocoapods',
            :warn_for_unused_master_specs_repo => false

~~~~省略~~~~