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

查看:43
本文介绍了Xcode 构建错误 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:服务"遇到来自门户的意外结果代码(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 Code=1100 "您的会话已过期.请登录."UserInfo={payload={type = mutable dict, count = 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 运行 slave 的问题:

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 构建错误 Jenkins:您的会话已过期.请登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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