title: How to add custom project configurations to Xcode when using CocoaPods?
body: <p>I have an iOS/OS X Xcode projects, where I'm using CocoaPods, and I can't seem to figure out how to add my own project configurations (In addition to Debug and Release) without completely blowing up the build.</p>
  
  <p>In the project, I have a number of targets, for apps on both platforms and its app extensions. The Xcode workspace of course also has the Pods project.</p>
  
  <p>Because the project builds targets for iOS and Mac, I use CocoaPods "targets" to group their pods together. My Podfile looks something like this:</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  
  target :iOS do
    platform :ios, '7.1'
    link_with 'iOS', 'NozbeToday', 'NozbeShare', 'NozbeWatch'
  
    # pods...
  end
  
  target :Mac do
    platform :osx, '10.9'
    link_with 'Mac'
  
    # pods...
  end
  </code></pre>
  
  <p>Now here's where I have a problem. So far I've had only the default "Debug" and "Release" configurations in my project. I wanted to change them and add some new ones for different provisioning profile/bundle ID combination.</p>
  
  <p>… and I'm stuck. I can't figure out how to do this.</p>
  
  <p>First sign of the problem was a warning <code>pod install</code> spewed out for every target/configuration combination:</p>
  
  <blockquote>
    <p>[!] 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 <code>NozbeToday</code> to <code>Pods/Target Support
    Files/Pods-iOS/Pods-iOS.dev debug.xcconfig</code> or include the
    <code>Pods/Target Support Files/Pods-iOS/Pods-iOS.dev debug.xcconfig</code> in
    your build configuration.</p>
  </blockquote>
  
  <p>I couldn't figure out what it means and how to fix this. Either way, the project wouldn't build — in the best case scenario I would get a linker error saying that it can't find <code>Pods-something.a</code>…</p>