Answers: <p><a href="https://forums.developer.apple.com/thread/75038" rel="nofollow noreferrer">https://forums.developer.apple.com/thread/75038</a></p>
  
  <blockquote>
    <p>Hi!</p>
    
    <p>I think I've got it figured out...</p>
    
    <p>instead of:</p>
  
  <pre><code>-exportProvisioningProfile "MyProvisioningProfile"
  </code></pre>
    
    <p>use:</p>
  
  <pre><code>PROVISIONING_PROFILE_SPECIFIER="MyProvisioningProfile"
  </code></pre>
    
    <p>We've got unity building the project every time and it doesn't fill in
    the PROVISIONING_PROFILE or PROVISIONING_PROFILE_SPECIFIER. And it
    looks like it will figure out the alphabet soup that belongs to
    PROVISIONING_PROFILE by looking it up itself provided you have
    downloaded it already.</p>
  </blockquote>
  
Answers: CC BY-SA 3.0
Answers: 2017-09-01T14:33:33.800Z
Answers: 2017-09-01T15:47:11.580Z
Answers: 2017-09-01T15:47:11.580Z
Answers: 030
Body: <p>I am using Jenkins automation build for iOS.</p>
  
  <p>Previously I have been using xcode 8.1 with no error showing. But i have updated the xcode to 8.3 and I'm facing errors now. I have the scripts as below:</p>
  
  <p>OLD SCRIPT</p>
  
  <pre><code>xcodebuild -exportArchive -archivePath Sample.xcarchive -exportPath Sample -exportFormat ipa -exportProvisioningProfile 'Sampledemo'
  
  xcodebuild: error: invalid option '-exportFormat'
  </code></pre>
  
  <p>NEW SCRIPT</p>
  
  <pre><code>xcodebuild -exportArchive -exportOptionsPlist exportOptions.plist -archivePath Sample.xcarchive -exportPath Sample  PROVISIONING_PROFILE_SPECIFIER="Sampledemo"
  
  error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)
  
  Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
  </code></pre>
  
  <p>but I'm facing this issue now. How can I solve the issue ?</p>
  
Tags: <jenkins><continuous-integration><continuous-delivery>
Title: error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)
UserDisplayName: Shajan
ThreadText: # error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)
  
  (Asked by: username_0 on 2017-05-09)
  
  I am using Jenkins automation build for iOS.
  
  Previously I have been using xcode 8.1 with no error showing. But i have updated the xcode to 8.3 and I'm facing errors now. I have the scripts as below:
  
  OLD SCRIPT
  
  ```
  xcodebuild -exportArchive -archivePath Sample.xcarchive -exportPath Sample -exportFormat ipa -exportProvisioningProfile 'Sampledemo'
  
  xcodebuild: error: invalid option '-exportFormat'
  
  ```
  
  NEW SCRIPT
  
  ```
  xcodebuild -exportArchive -exportOptionsPlist exportOptions.plist -archivePath Sample.xcarchive -exportPath Sample  PROVISIONING_PROFILE_SPECIFIER="Sampledemo"
  
  error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)
  
  Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
  
  ```
  
  but I'm facing this issue now. How can I solve the issue ?
  
  **Tags:** jenkins, continuous-integration, continuous-delivery
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-09-01. Score: 1
  
  <https://forums.developer.apple.com/thread/75038>
  
  > Hi!
  >
  > I think I've got it figured out...
  >
  > instead of:
  >
  > ```
  > -exportProvisioningProfile "MyProvisioningProfile"
  >
  > ```
  >
  > use:
  >
  > ```
  > PROVISIONING_PROFILE_SPECIFIER="MyProvisioningProfile"
  >
  > ```
  >
  > We've got unity building the project every time and it doesn't fill in
  > the PROVISIONING\_PROFILE or PROVISIONING\_PROFILE\_SPECIFIER. And it
  > looks like it will figure out the alphabet soup that belongs to
  > PROVISIONING\_PROFILE by looking it up itself provided you have
  > downloaded it already.
  
  
  ---
  
  