Terminated xcodebuild since it produced no output for too long

只谈情不闲聊 提交于 2019-12-03 11:10:12
Niels Castle

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.

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.

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!