Problem
Cause
This error means that there was a mixup in the certificates/provisioning profiles used to sign the application (the error).
Solution
The best option is to delete all distribution certificates and start with a new certificate again. The warning about the API analysis file can be safely ignored.