Error
[!] 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
).
Solution
- First, Delete the Podfile file under the ios folder;
- In the project folder, run the flutter clean and flutter pub get commands in sequence, which will regenerate the Podfile file;
- In the new Podfile file, change the version number of # platform :ios, '12.0' to 14.0, and cancel the comment: platform :ios, '14.0';
- Run the pod install command in the ios folder.