title: Xcode Build Error Jenkins: Your session has expired. Please log in
body: <p>I'm trying to build my application using jenkins pipeline using shell command. Below is the command i'm using to build the app.</p>
  
  <pre><code>sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos - configuration Debug clean build'
  </code></pre>
  
  <p>Below is the error i'm getting i console.</p>
  
  <p>note: Using new build system</p>
  
  <p>note: Planning build</p>
  
  <p>2018-10-11 11:19:36.638 xcodebuild[92399:5181481]  DVTPortal: Service '' encountered an unexpected result code from the portal ('1100')</p>
  
  <p>2018-10-11 11:19:36.638 xcodebuild[92399:5181481]  DVTPortal: Error:</p>
  
  <p>Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired.  Please log in." UserInfo={payload={type = mutable dict, count = 9,</p>
  
  <p>entries =></p>
  
  <pre><code>0 : responseId = &lt;CFString 0x7ff48deef220 [0x7fff94b6daf0]&gt;{contents = "40d9ad44-c951-49da-b3f3-b3ea434765a1"}
  
  2 : &lt;CFString 0x7fff94a90b58 [0x7fff94b6daf0]&gt;{contents = "protocolVersion"} = QH65B2
  
  3 : &lt;CFString 0x7ff48dea3420 [0x7fff94b6daf0]&gt;{contents = "requestUrl"} = &lt;CFString 0x7ff48de3d9a0 [0x7fff94b6daf0]&gt;{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
  
  6 : &lt;CFString 0x7ff48dec8c30 [0x7fff94b6daf0]&gt;{contents = "userLocale"} = en_US
  
  8 : resultCode = &lt;CFNumber 0x44c37 [0x7fff94b6daf0]&gt;{value = +1100, type = kCFNumberSInt64Type}
  
  9 : userString = &lt;CFString 0x7ff48ded0cc0 [0x7fff94b6daf0]&gt;{contents = "Your session has expired.  Please log in."}
  
  10 : &lt;CFString 0x7ff48dea94d0 [0x7fff94b6daf0]&gt;{contents = "resultString"} = &lt;CFString 0x7ff48de648e0 [0x7fff94b6daf0]&gt;{contents = "authentication.failed"}
  
  11 : httpCode = &lt;CFNumber 0xc837 [0x7fff94b6daf0]&gt;{value = +200, type = kCFNumberSInt64Type}
  
  12 : &lt;CFString 0x7ff48de340f0 [0x7fff94b6daf0]&gt;{contents = "creationTimestamp"} = &lt;CFString 0x7ff48de9a7d0 [0x7fff94b6daf0]&gt;{contents = "2018-10-11T10:19:36Z"}
  </code></pre>
  
  <p>}</p>
  
  <p>I have even tried removing the developer account from my xcode preferences in local xcode and as well as in my jenkins installed machine. I have re-added it again. Also Deleted the already logged in session from Keychain App in both places(local keychain, remote keychain) But nothing seems to help me out. I'm working with Xcode10, Mac OS Mojave,What might be the issue, any help is appreciated. Thank you.</p>