CocoaPods did not set the base configuration of your project because your project already has a custom config set

20 min read
Pod installation complete! There are 8 dependencies from the Podfile and 9 total pods installed.

[!] 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.debug.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] 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.release.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig` in your build configuration (`Runner/Configs/AppInfo.xcconfig`).

[!] 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 (`Runner/Configs/AppInfo.xcconfig`).

[!] 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

These warnings are suggesting some changes to the base configurations of your Xcode project. Here's how to resolve each:

  1. Configuration warnings: You're seeing these because your project has a custom configuration set, and this is causing conflicts with the configurations set by CocoaPods. You should do as the warning suggests and include the Pods-Runner.debug.xcconfig, Pods-Runner.release.xcconfig, and Pods-Runner.profile.xcconfig in your custom configuration file (Runner/Configs/AppInfo.xcconfig).

    To do this, you can add the following lines to your custom .xcconfig file:

    #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
    #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
    #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"
    

    Then, re-run pod install.

  2. Master specs repo warning: This is a new warning from CocoaPods. Starting from version 1.7.2, CocoaPods uses a CDN (Content Delivery Network) by default instead of the git-based master specs repo. This improves the speed and reliability of dependency resolution. The warning tells you that you still have the old master specs repo, and you can safely remove it.

    To remove the old master specs repo, run the following command in your terminal:

    pod repo remove master
    

    To suppress this warning in future, add the following line to your Podfile:

    install! 'cocoapods', :warn_for_unused_master_specs_repo => false
    

Then, run pod install again. If everything is configured correctly, you should see no warnings this time.