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
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.
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.
How many devices/simulators are you testing against? Try cutting it back to one simulator, and seeing if it completes.
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.