title: xcodebuild -exportArchive: exportOptionsPlist error for key 'method': expected one of {}
body: <p>I'm using command line xcodebuild tool to export ad-hoc distribution ipa file out of my archive like this:</p>
  
  <pre><code>xcodebuild -exportArchive -archivePath /path/Archive.xcarchive -exportPath /path -exportOptionsPlist /path/options.plist
  </code></pre>
  
  <p>However, this command fails with error</p>
  
  <pre><code>exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but found ad-hoc
  </code></pre>
  
  <p>No mater what 'method' I provide in my export options plist, it always fails with this error. It also fails if I remove the 'method' option from the plist file. </p>