IDEDistributionErrorDomain Code=1 error and Fastlane

If you are not using the amazing FastLane build tools then it's time you did.

If you are though, you may have noticed that your build servers are breaking, especially when using the deliver or pilot actions.

A sample error below

Error Domain=IDEDistributionErrorDomain Code=1 The operation couldn't be completed. (IDEDistributionErrorDomain error 1.)

The problem

Apple's WWDR certificate expired on 14/02/16 and simply replacing this certificate with the new one should solve the issue.

The fix