📌
Flutter iOS:Podコマンドを実行した時に出るWarningの解消法
発生源
Flutterにおいてpod install
などすると以下のメッセージが表示されることがよくある。
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
解決方法
CocoaPodの.xcconfigという設定ファイルの内容をFlutterに反映できるようにする。
(デフォルトの状態だとCocoaPodで変更した内容が反映されないため)
/ios/Flutter/Release.xcconfig
に以下のコードを追記。
#include "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"
Discussion