Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

After I execute a pod install at the base of my project, I get the following error:

CocoaPods did not set the base configuration of your project because 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 BluePlaquesLondonFramework to Pods/Target Support Files/Pods/Pods.debug.xcconfig or include the Pods/Target Support Files/Pods/Pods.debug.xcconfig in your build configuration.

This probably sounds like a silly question, but how do I set the base configuration for a target?

https://github.com/seanoshea/BluePlaquesLondon/blob/ios8/Podfile is the Podfile which is causing this issue.

http://github.com/seanoshea/BluePlaquesLondon on the iOS 8 branch is the Podfile in question if you're curious to see what the project looks like.

like image 203
seanoshea Avatar asked Oct 09 '14 20:10

seanoshea


People also ask

Do I need Cocoapods for flutter?

System requirements Flutter supports iOS 9.0 and later. Additionally, you will need CocoaPods version 1.10 or later.

Could not find include file pods target support files pods runner pods runner debug Xcconfig in search paths?

to Solve error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner. debug. xcconfig' in search paths (in target 'Runner') you just have to install pods manually. the second solution is Just to delete Podfile and re-run your app.


3 Answers

I had the same problem, but in Xcode 6.1.1 - what fixed it for me was to change the configuration file setting to None for the two Pods-related targets, then run pod install again.

The configuration file setting is found by selecting the project (not the target) and then the Info tab.

like image 64
TimD Avatar answered Nov 09 '22 10:11

TimD


Don't tinker, Reset.

Step-by-step

  1. Show Project Navigator
  2. Select Project
  3. Select Info
  4. In Configurations, select each one, one at a time (Debug, ApplicationUnitTest, Release, etc.), and for each target within said configuration, set configuration to None.
  5. Make certain that Based on Configuration File reads 0 Configurations Set or No Configurations Set for each configuration. That is the crux. 0 Configurations Set
  6. Quit Xcode
  7. rm -rf Pods/ Podfile.lock ; pod install

Once you have allowed pod install in step 7 to do its magic, you may be able to use a custom config and change your configurations.

like image 30
SwiftArchitect Avatar answered Nov 09 '22 09:11

SwiftArchitect


Go into XCode and open your project settings and under the Info tab, you will see "Configurations" where you can set a configuration file for both Debug and Release. You apparently have already set these to some custom config and CocoaPods wants/needs you to use the Pods config.

Here's a screen shot

like image 26
quark Avatar answered Nov 09 '22 10:11

quark