jon_na_fun
jon_na_fun

Reputation: 1223

Terminated xcodebuild since it produced no output for too long

I've updated to the new Xcode 6.1 and server 4.0. I was able to get continuous integration on the simulators but not the devices in the previous version. Now that I've updated, I'm not getting any continuous integration. I'm getting the following 2 errors:

Terminated xcodebuild since it produced no output for too long

The xcodebuild task completed with uncaught signal.

Any ideas?

Upvotes: 12

Views: 3451

Answers (4)

Niels Castle
Niels Castle

Reputation: 8069

When I changed my signing certificate on my Xcode CI machine I could see that the bots got stuck on signing the build products.

Checking running processes on the Xcode CI machine showed me what executable was trying to access my signing certificate

/usr/bin/codesign --force --sign 043...DE2A --entitlements /Library/Develop...

I opened Keychain and found my signing certificate in the System keychain, cmd+i to show info and added codesign to the list of executables that could access it without authenticating.

enter image description here

Upvotes: 18

bdmontz
bdmontz

Reputation: 581

For me the solution to this problem was to open Xcode on my server, go to Preferences -> Accounts and make sure that it had downloaded all my provisioning profiles.

Upvotes: 0

Davis Cho
Davis Cho

Reputation: 350

In my case, we use Crashlytics in our project, which contains a run script to run Crashlytics framework after build:

./Crashlytics.framework/run xxxxxxxxxxxxxxxxxxxxxxxxxx

This script will hang the Xcode server bot.

After removing the script (or create another scheme without any run script for Xcode server bot), it works again.

Watch out any run script in your project scheme.

Upvotes: 4

benzado
benzado

Reputation: 84348

How many devices/simulators are you testing against? Try cutting it back to one simulator, and seeing if it completes.

Upvotes: 0

Related Questions