Xcode Build Error Jenkins:您的会话已过期.请登录 [英] Xcode Build Error Jenkins: Your session has expired. Please log in

查看:2345
本文介绍了Xcode Build Error Jenkins:您的会话已过期.请登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用shell命令使用jenkins管道来构建我的应用程序.下面是我用来构建应用程序的命令.

I'm trying to build my application using jenkins pipeline using shell command. Below is the command i'm using to build the app.

sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos - configuration Debug clean build'

以下是我得到控制台的错误.

Below is the error i'm getting i console.

注意:使用新的构建系统

note: Using new build system

注意:规划构建

2018-10-11 11:19:36.638 xcodebuild [92399:5181481] DVTPortal:Service''从门户网站('1100')遇到意外的结果代码

2018-10-11 11:19:36.638 xcodebuild[92399:5181481] DVTPortal: Service '' encountered an unexpected result code from the portal ('1100')

2018-10-11 11:19:36.638 xcodebuild [92399:5181481] DVTPortal:错误:

2018-10-11 11:19:36.638 xcodebuild[92399:5181481] DVTPortal: Error:

Error Domain = DVTPortalServiceErrorDomain代码= 1100您的会话已过期.请登录. UserInfo = {有效载荷= {类型=可变字典,计数= 9,

Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={type = mutable dict, count = 9,

条目=>

0 : responseId = <CFString 0x7ff48deef220 [0x7fff94b6daf0]>{contents = "40d9ad44-c951-49da-b3f3-b3ea434765a1"}

2 : <CFString 0x7fff94a90b58 [0x7fff94b6daf0]>{contents = "protocolVersion"} = QH65B2

3 : <CFString 0x7ff48dea3420 [0x7fff94b6daf0]>{contents = "requestUrl"} = <CFString 0x7ff48de3d9a0 [0x7fff94b6daf0]>{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}

6 : <CFString 0x7ff48dec8c30 [0x7fff94b6daf0]>{contents = "userLocale"} = en_US

8 : resultCode = <CFNumber 0x44c37 [0x7fff94b6daf0]>{value = +1100, type = kCFNumberSInt64Type}

9 : userString = <CFString 0x7ff48ded0cc0 [0x7fff94b6daf0]>{contents = "Your session has expired.  Please log in."}

10 : <CFString 0x7ff48dea94d0 [0x7fff94b6daf0]>{contents = "resultString"} = <CFString 0x7ff48de648e0 [0x7fff94b6daf0]>{contents = "authentication.failed"}

11 : httpCode = <CFNumber 0xc837 [0x7fff94b6daf0]>{value = +200, type = kCFNumberSInt64Type}

12 : <CFString 0x7ff48de340f0 [0x7fff94b6daf0]>{contents = "creationTimestamp"} = <CFString 0x7ff48de9a7d0 [0x7fff94b6daf0]>{contents = "2018-10-11T10:19:36Z"}

}

我什至尝试从本地xcode和我的jenkins安装机器的xcode首选项中删除开发者帐户.我又重新添加了它.还从两个地方(本地钥匙串,远程钥匙串)的钥匙串应用程序中删除了已登录的会话,但是似乎没有任何帮助.我正在使用Xcode10,Mac OS Mojave,可能是问题所在,希望能提供任何帮助.谢谢.

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.

推荐答案

这有助于解决Jenkins使用ssh运行从属服务器的问题:

This helped fix the problem with Jenkins running a slave with ssh:

  1. 通过Xcode的首选项删除帐户
  2. 退出Xcode
  3. 在终端中,将首选项设置为不使用钥匙串服务:默认情况下,写入com.apple.dt.Xcode DVTDeveloperAccountUseKeychainService_2 -bool NO
  4. 重新打开Xcode并重新添加帐户

来源: https://forums.developer.apple.com/thread/112606

这篇关于Xcode Build Error Jenkins:您的会话已过期.请登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆