There’s no shortage of obscure Apple issues that arise when building iOS apps as part of an automated build system like the one we’ve built at GroupAhead. I recently hit the most obscure issue ever, so thought it was worthy of sharing in the hope it saves time for others.
When signing apps, I was receiving a lot of dialogs asking for me to enter my password to unlock the System Keychain. To try and avoid this nuisance, I went through and told Keychain to “Always Trust” the “Apple Worldwide Developer Relations Certification Authority” certificate (amongst others):
Do not do this!
For some obscure reason, if that certificate is not set to “Use System Defaults”, then you won’t be able to submit apps to the app store. You will receive this dreaded and unhelpful error message from xcode:
If you switch the “Apple Worldwide Developer Relations Certification Authority” back from “Always Trust” to “Use System Defaults”, then the error goes away. If anyone understands the underlying cause then I’d love to hear from you!