title: Errors converting xcarchive to IPA - single-bundle archive + missing plist method values
body: <p>I'm trying to convert my <em>xcarchive</em> to an IPA (XCode 7.1.1). The following command</p>
  
  <pre><code>xcodebuild 
      -exportArchive -archivePath foo.xcarchive -exportPath . -exportFormat IPA
  </code></pre>
  
  <p>Fails with the error</p>
  
  <blockquote>
    <p>the archive at path 'foo.xcarchive' is not a single-bundle archive</p>
  </blockquote>
  
  <p>Since the above command is technically deprecated, I also tried the new form: </p>
  
  <pre><code>xcodebuild 
      -exportArchive -archivePath foo.xcarchive -exportPath . 
      -exportOptionsPlist ipa.plist
  </code></pre>
  
  <p>Where the <code>ipa.plist</code> is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
  &lt;plist version="1.0"&gt;
  &lt;dict&gt;
      &lt;key&gt;method&lt;/key&gt;
      &lt;string&gt;app-store&lt;/string&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>
  
  <p>Which then resulted in the error:</p>
  
  <blockquote>
    <p>error: exportArchive: exportOptionsPlist error for key 'method':
    expected one of {}, but found app-store</p>
  </blockquote>
  
  <p>Now, trying to debug this I opened the xcarchive folder and inspected its structure. I noticed that I have a folder on the same level as <code>Products\Applications\foo.app</code> so I deleted it and tried again to no avail (same results). I then proceeded to delete files from within foo.app until I remained with nothing but the DWARF binary - still no cigar (same result), though that could have been due to the fact that I messed up the app signature by deleting files manually.</p>