In my case, this was caused because I copy the project from another macbook, and somehow it brought together some certificates, and building the project xcode was crashing with this error, so I clone the project again from the git, and all works fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: