All the above mentioned approaches didn't work for me. What helped a lot was resetting the System.keychain
, which had 25 MB size. This speeded up build times up to 40% on our CI system.
Analyze
du -h /Library/Keychains/System.keychain
good: 60K
bad: 25MB
Reset
sudo systemkeychain -vfcC [password]
Attention: If you have important keys/certs/passwords stored in your System.keychain, you may want to export them before performing the reset and then reimport them on demand. This wasn't necessary for me. My new System.keychain has no content and building projects works absolutely fine.