title: "'CDVPlugin.h' file not found" in Cordova as component (Cleaver)
body: <p>I added Cordova as a component to my iOS project. Adding a custom plugin leads to the error, despite that the plugin works in a Cordova-only project:</p>
  
  <pre><code>'CDVPlugin.h' file not found
  </code></pre>
  
  <ul>
  <li>PhoneGap / Cordova 1.7.0 installed</li>
  <li>Checked multiple times to correctly implement the steps <a href="https://github.com/apache/incubator-cordova-ios/blob/master/guides/How%20to%20Use%20Cordova%20as%20a%20Component.md" rel="noreferrer">https://github.com/apache/incubator-cordova-ios/blob/master/guides/How%20to%20Use%20Cordova%20as%20a%20Component.md</a> ("Adding Cleaver to your Xcode project (CordovaLib sub-project)")</li>
  <li>The Plugin works in a plain cordova-based application (Cordova Xcode template)</li>
  <li>Adding "-all_load" to the 'other linker flags' in the main project does have no effect</li>
  </ul>
  
  <p>The problematic part is as follows:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  #ifdef CORDOVA_FRAMEWORK
  #import &lt;Cordova/CDVPlugin.h&gt;
  #else
  #import "CDVPlugin.h"
  #endif
  </code></pre>
  
  <p>What am I missing?</p>