Xcode Server Bot 集成在第六阶段停止:
“导出可安装产品”
原始构建日志显示为最终条目:
$ /usr/bin/xcrun xcodebuild -exportArchive -archivePath /Library/Developer/XcodeServer/Integrations/Integration-7f80e03e9471a040c753957c2600b0a6/BetUP.xcarchive -exportPath /Library/Developer/XcodeServer/Integrations/Integration-7f80e03e9471a040c753957c2600b0a6/ExportedProduct -exportOptionsPlist /Library/Developer/XcodeServer/Integrations/Integration-7f80e03e9471a040c753957c2600b0a6/ExportOptions.plist -IDEPostProgressNotifications=YES -DVTAllowServerCertificates=YES -DVTSigningCertificateSourceLogLevel=3 -DVTSigningCertificateManagerLogLevel=3 -DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles -configuration Debug
2016-09-05 13:50:33.659 xcodebuild[61877:3819468] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/x2/t8b7x9gs2x32b686xfzq77lw000087/T/MyApp_2016-09-05_13-50-33.658.xcdistributionlogs'.
2016-09-05 13:50:33.704 xcodebuild[61877:3819468] [MT] DeveloperPortal: Using pre-existing current store at URL (file:///var/_xcsbuildd/Library/Developer/Xcode/DeveloperPortal%207.3.1.db).
2016-09-05 13:50:33.712 xcodebuild[61877:3819482] DVTSigningCertificateSource: Searching for signing identities in default keychain search list
2016-09-05 13:50:33.738 xcodebuild[61877:3819482] DVTSigningCertificateSource: Searching for signing identities in default keychain search list
2016-09-05 13:50:33.757 xcodebuild[61877:3819482] DVTSigningCertificateManager: __58-[DVTSigningCertificateManager forceFullSyncWithCallback:]_block_invoke (0x7fbc650a88a0): Signing certificates = {(
最终,集成达到超时限制并失败并出现错误:
断言:正在运行的任务被终止,因为它超过 1200 秒没有产生任何活动(使用 sudo xcrun xcscontrol --configure-integration-timeout 增加此超时)
将超时时间增加到超过 1200 秒(20 分钟)是没有意义的,因为它永远不会完成。早期阶段需要 3 分钟,因此 17 分钟是足够的时间来导出。
诸如此类的其他帖子没有提供解决方案:
Xcode Server Bot 集成无法导出存档并带有断言失败:exportArchive: ipatool failed with an exception
Xcode Server Bot 集成无法导出存档:错误 Domain=IDEDistributionErrorDomain Code=1“无法完成操作。”
将私钥 -通过拖动- 从登录用户复制到系统钥匙串也没有解决:
紧抓着稻草,我尝试了几乎所有其他方法,包括--sync-portal
教程Xcode Server Hacks 中描述的所有内容: 2. 使用 xcscontrol 进行控制。
更不用说明显的重新启动 - 不是重置!- 使用这个命令:
sudo xcrun xcscontrol --restart
几乎尝试了我能想到的所有方法,如何解决这个问题?