Terminated xcodebuild since it produced no output

2020-06-09 06:31发布

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?

4条回答
一夜七次
2楼-- · 2020-06-09 07:06

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.

查看更多
欢心
3楼-- · 2020-06-09 07:14

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

查看更多
smile是对你的礼貌
4楼-- · 2020-06-09 07:21

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.

查看更多
\"骚年 ilove
5楼-- · 2020-06-09 07:23

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

查看更多
登录 后发表回答