📌

Flutter iOS:Podコマンドを実行した時に出るWarningの解消法

2025/03/04に公開

発生源

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