ionic build ios **export failed** error: exportArchive: Found no compatible export methds
<p>When I run: <code>ionic build ios</code> the archive succeeds but the export fails. </p>

<p>Error Messages: </p>

<pre><code>error: exportArchive: Found no compatible export methods for: DVTFilePath:0x7f9d3dc41d20:'/Users/**PATH**/platforms/ios/**PROJECTNAME**.xcarchive'

Error Domain=IDEFoundationErrorDomain Code=1 "Found no compatible export methods for: DVTFilePath:0x7f9d3dc41d20:'/Users/**PATH**/platforms/ios/**PROJECTNAME**.xcarchive'" UserInfo={NSLocalizedDescription=Found no compatible export methods for: DVTFilePath:0x7f9d3dc41d20:'/Users/**PATH**/platforms/ios/**PROJECTNAME**.xcarchive'} 


Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,fasTask.xcarchive,-exportOptionsPlist,/Users/**PATH**/platforms/ios/exportOptions.plist,-exportPath,/Users/**PATH**/platforms/ios/build/device
</code></pre>

<p>I modified the <em>exportOptions.plist</em> 'method' key to 'export_method' but same error message. </p>

<p>I tried uninstalling Xcode and re-installing. The first build after re-installation gives me a successful build. Any builds after the first build give me the same error message as before. </p>

<p>Also if I <code>npm uninstall -g ionic cordova</code> and delete everything in the platform folder, then <code>npm install -g ionic cordova</code> then the first build succeeds but any build after it fails. </p>

<p><code>ionic serve</code> works fine every-time. </p>

<p>Details: </p>

<ul>
<li>Xcode 7.3.1</li>
<li>ionic 2.1.14</li>
<li>cordova 6.4.0</li>
<li>cordova-ios 4.3.1</li>
<li>ios-deploy 1.9.0</li>
</ul>

<p>Thanks.</p>