title: Loading Barcode plugin in Phonegap using Plugman
body: <p>Just starting up with PhoneGaps command line interface and it new Plugman command. Here are the calls I am making to create my project</p>
  
  <pre><code>Alex-Britez-MBP:barcodeApp abritez$ phonegap create /Users/abritez/Documents/Projects/phonegap/barcodeApp --name "barcodeApp" --id "com.company.barcodeApp"
  </code></pre>
  
  <p>With response</p>
  
  <pre><code>  phonegap  created project at /Users/abritez/Documents/Projects/phonegap/barcodeApp
  </code></pre>
  
  <p>I then attempt to load the plugin downloaded from (<a href="https://github.com/wildabeast/BarcodeScanner" rel="nofollow noreferrer">https://github.com/wildabeast/BarcodeScanner</a>)</p>
  
  <pre><code> Alex-Britez-MBP:barcodeApp abritez$ plugman --platform ios --project /Users/abritez/Documents/Projects/phonegap/barcodeApp/platforms/ios --plugin /Users/abritez/Documents/Projects/phonegap/_plugins/barcodeReader
  </code></pre>
  
  <p>I get the following error on the terminal</p>
  
  <pre><code>grafting xml at selector "plugins" from "/Users/abritez/Documents/Projects/phonegap/barcodeApp/platforms/ios/barcodeApp/config.xml" during config install went bad :(
  </code></pre>
  
  <p>I checked the directory and it seemed like files where successfully added, but running the application fails in both Simulator and on device.</p>
  
  <p>Any ideas where I am going wrong?</p>
  
  <p><strong>Update:</strong>
  I did notice that in plugin.xml there was a line which stated</p>
  
  <pre><code>&lt;config-file target="config.xml" parent="plugins"&gt;
              &lt;plugin name="BarcodeScanner" value="CDVBarcodeScanner"/&gt;
          &lt;/config-file&gt;
  </code></pre>
  
  <p>I see 2 plugin folders one in cordova.plugin and the other on the top level. Curious if this is the issue.</p>
  
  <p>Another interesting thing i noticed is how the directories where created by PlugMan. This doesn't seem like it is correct.</p>
  
  <p>Screenshot here:
  <img src="https://i.stack.imgur.com/LgYsO.png" alt="Directory Screenshot"></p>