title: How do I reference a dependent project built with a different configuration in Xcode?
body: <p>I have two Xcode projects: <code>Super</code> and <code>Sub</code>. <code>Super</code> has a custom configuration: <code>Enterprise</code>. <code>Sub</code> only has the default configurations: <code>Debug</code> and <code>Release</code>. <code>Super</code> has a target dependency on <code>Sub</code>. When I build <code>Super</code> with the <code>Enterprise</code> configuration, <code>Sub</code> builds with its default configuration: <code>Release</code>. This yields the following hierarchy:</p>
  
  <pre><code>Build
  |-Products
    |-Enterprise-iphoneos
      |-Super.app
    |-Release-iphoneos
      |-libSub.a
      |-Sub
        |-Sub.h
  </code></pre>
  
  <p>Clang fails to build because <code>libSub.a</code> and <code>Sub/Sub.h</code> is normally in the same directory as <code>Super.app</code>, but instead is in a different directory because <code>Sub</code> built with the <code>Release</code> configuration instead of <code>Enterprise</code>. I control both projects, so I could easily add an <code>Enterprise</code> configuration to <code>Sub</code>, but I feel like there must be a magical incantation of <a href="https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html" rel="nofollow">Xcode Build Settings</a> to make this work.</p>