title: -allowProvisioningUpdates doesn't work
body: <p>We are using Jenkins for Continiuous Integration. Everything we need to do in order to compile our app is done via commandline (bash script), because we have several machines where the build has be done without any human access to the devices.</p>
  
  <p>As you can imagine I was very happy to see the new xcodebuild feature flag -allowProvisioningUpdates in XCode9.</p>
  
  <p>I understand, that I need to add the credentials of our Apple ID into the XCode settings.</p>
  
  <p>The credentials are adde to the XCode account tab in Preferences, but when I try to compile using "xcodebuild ... -allowProvisioningUpdates" the following error message appears:</p>
  
  <pre><code> 2017-09-19 09:47:59.692 xcodebuild[74979:3824315]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-13231/DVTFoundation/Portal/DVTDeveloperAccountCredentialsManager.m:38  
  Details:  Unable to find default keychain.  
  Object:   &lt;DVTDeveloperAccountCredentialsManager&gt;  
  Method:   +defaultAccountCredentialsManager  
  Thread:   &lt;NSThread: 0x7fe17860aa40&gt;{number = 4, name = (null)}  
  Please file a bug at http:/  
  2017-09-19 09:47:59.792 xcodebuild[74979:3824308] [MT] IDEDistribution: Step failed: &lt;IDEDistributionSigningAssetsStep: 0x7fe17d45cf20&gt;: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionSigningAssetStepUnderlyingErrors=(  
      "Error Domain=DVTServicesSessionErrorDomain Code=0 \"Unable to log in with account 'xxx@yyy.com'.\" UserInfo={NSLocalizedFailureReason=Unable to log in with account 'xxx@yyy.com'., NSLocalizedRecoverySuggestion=The login details for account 'xxx@yyy.com' were rejected., DVTDeveloperAccountErrorAccount=&lt;DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: xxx@yyy.com&gt;, NSUnderlyingError=0x7fe179e8ee60 {Error Domain=DVTDeveloperAccountErrorDomain Code=4 \"xxx@yyy.com could not sign in.\" UserInfo={NSLocalizedRecoverySuggestion=Cannot sign in to this account. Try signing into it again in the Accounts preference pane., NSLocalizedDescription=xxx@yyy.com could not sign in., DVTDeveloperAccountErrorAccount=&lt;DVTAppleIDBasedDeveloperAccount 0x7fe179b016c0: username: xxx@yyy.com&gt;}}}",  
      "Error Domain=IDEProfileLocatorErrorDomain Code=1 \"No profiles for 'com.yyy.CITestProject' were found\" UserInfo={NSLocalizedDescription=No profiles for 'com.yyy.CITestProject' were found, NSLocalizedRecoverySuggestion=Xcode couldn't find any iOS App Store provisioning profiles matching 'com.yyy.CITestProject'.}"  
  )}  
  error: exportArchive: The operation couldn’t be completed. Unable to log in with account 'xxx@yyy.com'.
  </code></pre>
  
  <p>Does someone know how to fix this problem?</p>
  
  <p><strong>update:</strong> We use this plugin to start ssh sessions to our Jenkins slaves in order to do the buildjob: <a href="https://wiki.jenkins.io/display/JENKINS/SSH+Slaves+plugin" rel="noreferrer">https://wiki.jenkins.io/display/JENKINS/SSH+Slaves+plugin</a></p>