Xcode Server Bot integration stalls at stage six:
"Exporting installable product"
The Raw Build Log shows as final entries:
$ /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 = {(
Eventually the integration hits the timeout limit and fails with an error:
Assertion: Running task was terminated because it produced no activity for more than 1200 seconds (use sudo xcrun xcscontrol --configure-integration-timeout to increase this timeout)
There's no point increasing the timeout beyond 1200 seconds - 20 minutes - as it will never completed. Earlier stages take three minutes, so seventeen minutes is plenty time to export.
Other posts such as these did not provide solutions:
Copying the private key - by dragging - from the login user to the system keychain also did not resolve:
Xcode Bots: Common Problems And Workarounds
Clutching at straws, I have tried pretty much everything else including --sync-portal
described in the tutorial Xcode Server Hacks: 2. Taking control with xcscontrol.
Not to mention obviously restarting - not resetting! - using this command:
sudo xcrun xcscontrol --restart
Having tried almost everything I can think of, how can this problem be resolved?