Xcode Server Bot 集成无法导出存档:错误 Domain=IDEDistributionErrorDomain Code=1“无法完成操作。”
Posted
技术标签:
【中文标题】Xcode Server Bot 集成无法导出存档:错误 Domain=IDEDistributionErrorDomain Code=1“无法完成操作。”【英文标题】:Xcode Server Bot integration fails to export archive: Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t be completed." 【发布时间】:2016-02-17 08:06:32 【问题描述】:2016-02-17 13:54:56.823 xcodebuild[26605:1155454] [MT] IDEBuildOperationQueueSetResourceManagement: Resetting max operation count to 6
** ARCHIVE SUCCEEDED **
$ /usr/bin/xcrun xcodebuild -exportArchive -archivePath /Library/Developer/XcodeServer/Integrations/Integration-5041ec1e03066c77e1e1af601c03e78a/CardApp.xcarchive
-exportPath /Library/Developer/XcodeServer/Integrations/Integration-5041ec1e03066c77e1e1af601c03e78a/ExportedProduct
-exportOptionsPlist /Library/Developer/XcodeServer/Integrations/Integration-5041ec1e03066c77e1e1af601c03e78a/ExportOptions.plist
-IDEPostProgressNotifications=YES -DVTAllowServerCertificates=YES -DVTSigningCertificateSourceLogLevel=3 -DVTSigningCertificateManagerLogLevel=3 -DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles
-configuration pre
2016-02-17 13:54:57.249 xcodebuild[30225:1159538] [MT] IDEDistribution: -[IDEDistributionLogging
_createLoggingBundleAtPath:]: Created bundle at path '/var/folders/9h/ly8w3wnd6cn0t3y6kdhpnmtm000087/T/product_2016-02-17_13-54-57.249.xcdistributionlogs'.
2016-02-17 13:54:57.265 xcodebuild[30225:1159540] DVTSigningCertificateSource: Searching for signing identities in default keychain search list
2016-02-17 13:54:57.287 xcodebuild[30225:1159540] DVTSigningCertificateSource: Searching for signing identities in default keychain search list
2016-02-17 13:54:57.318 xcodebuild[30225:1159540] DVTSigningCertificateManager: __45-[DVTSigningCertificateManager forceFullSync]_block_invoke (0x7f8d42d4b4d0): Signing certificates = (
<DVTSigningCertificate: 0x7f8d42d52780; name='Mac Developer: OS X Server (XTP8DLJK38)', hash='504739CF310993D382EAC18B5FD6685F0EAED3E4', certificateKind='1.2.840.113635.100.6.1.12'>,
<DVTSigningCertificate: 0x7f8d42d56ae0; name='iPhone Distribution: ***** Technology Co., Ltd. (KRQB3E5X27)', hash='C9D117064592B47FC805F05BE614EBF13DD4BCEE', certificateKind='1.2.840.113635.100.6.1.4'>,
<DVTSigningCertificate: 0x7f8d42d5d9b0; name='iPhone Distribution: ***** Technology Co., Ltd.', hash='EE6AA59130285A6EF43F8BA29105571E7DE163B8', certificateKind='1.2.840.113635.100.6.1.4'>,
<DVTSigningCertificate: 0x7f8d42d35b00; name='iPhone Developer: OS X Server (XTP8DLJK38)', hash='26D2BD0EB5741641B17A421FFB9EF6E33939A60D', certificateKind='1.2.840.113635.100.6.1.2'>,
<DVTSigningCertificate: 0x7f8d42d5c670; name='Mac Developer: OS X Server (XTP8DLJK38)', hash='5028DB9F8F3740759C617188CEDD21890AAE10DF', certificateKind='1.2.840.113635.100.6.1.12'>,
<DVTSigningCertificate: 0x7f8d42d59b90; name='iPhone Developer: OS X Server (XTP8DLJK38)', hash='7B76A1ABB3252977545BBFEA1A727CC80A53DCD0', certificateKind='1.2.840.113635.100.6.1.2'>,
<DVTSigningCertificate: 0x7f8d42d56440; name='iPhone Distribution: ***** Technology Co., Ltd. (KRQB3E5X27)', hash='6C8E09899766E94DC872E9EAB77ED554F366549C', certificateKind='1.2.840.113635.100.6.1.4'>
),
Signing Identity Certificates = (
<DVTSigningCertificate: 0x7f8d42d52780; name='Mac Developer: OS X Server (XTP8DLJK38)', hash='504739CF310993D382EAC18B5FD6685F0EAED3E4', certificateKind='1.2.840.113635.100.6.1.12'>,
<DVTSigningCertificate: 0x7f8d42d56440; name='iPhone Distribution: ***** Technology Co., Ltd. (KRQB3E5X27)', hash='6C8E09899766E94DC872E9EAB77ED554F366549C', certificateKind='1.2.840.113635.100.6.1.4'>,
<DVTSigningCertificate: 0x7f8d42d5d9b0; name='iPhone Distribution: ***** Technology Co., Ltd.', hash='EE6AA59130285A6EF43F8BA29105571E7DE163B8', certificateKind='1.2.840.113635.100.6.1.4'>,
<DVTSigningCertificate: 0x7f8d42d35b00; name='iPhone Developer: OS X Server (XTP8DLJK38)', hash='26D2BD0EB5741641B17A421FFB9EF6E33939A60D', certificateKind='1.2.840.113635.100.6.1.2'>,
<DVTSigningCertificate: 0x7f8d42d5c670; name='Mac Developer: OS X Server (XTP8DLJK38)', hash='5028DB9F8F3740759C617188CEDD21890AAE10DF', certificateKind='1.2.840.113635.100.6.1.12'>,
<DVTSigningCertificate: 0x7f8d42d59b90; name='iPhone Developer: OS X Server (XTP8DLJK38)', hash='7B76A1ABB3252977545BBFEA1A727CC80A53DCD0', certificateKind='1.2.840.113635.100.6.1.2'>,
<DVTSigningCertificate: 0x7f8d42d56ae0; name='iPhone Distribution: ***** Technology Co., Ltd. (KRQB3E5X27)', hash='C9D117064592B47FC805F05BE614EBF13DD4BCEE', certificateKind='1.2.840.113635.100.6.1.4'>
)
2016-02-17 13:54:57.708 xcodebuild[30225:1159538] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7f8d42c7e060>:
Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)"
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)
Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)"
** EXPORT FAILED **
===========================
这直到几天前才有效。没有任何修改。但是导出失败!我没有想法。
【问题讨论】:
Xcode 版本 7.2.1。服务器版本 5.0.15 欢迎来到***。如果您遵循these 准则,您可以让其他人更容易回答您的问题。请确保相应地编辑您的帖子,因为问题质量不足可能会导致其他人懒得回答 我也有同样的问题 @Siriss 重置证书并删除过期版本的WWDR developer.apple.com/support/certificates/expiration 【参考方案1】:当过期的 WWDR 中间证书存在于钥匙串访问应用程序的系统钥匙串和登录钥匙串中时,会出现此问题。要解决此问题,请先下载并安装renewed certificate。接下来,在 Keychain Access 应用程序中,选择 System keychain。在“查看”菜单中选择“显示过期证书”,然后删除过期版本的 Apple Worldwide Developer Relations 证书颁发机构中间证书。您的证书现在应该在 Keychain Access 中显示为有效并且可供 Xcode 使用
【讨论】:
谢谢,它救了我。 酷。为我工作! 看起来很有希望,但不幸的是没有为我工作。系统钥匙串中只有一个此类证书,有效期为 2023 @MaxMacLeod 嗨,Max,你能解决问题吗,我仍然无法解决。我在系统钥匙串中也有证书,2023 年到期.. 是的,我记得我删除了 Xcode Server 中的团队设置。然后只需重新添加它们。然后一切都很顺利。以上是关于Xcode Server Bot 集成无法导出存档:错误 Domain=IDEDistributionErrorDomain Code=1“无法完成操作。”的主要内容,如果未能解决你的问题,请参考以下文章