Xcode Distribution Error — Profile doesn’t include the selected signing certificate

You may have this error when you distribute your app or export the .ipa file

This error means the “Distribution profile” you choose ( blue rect)

does not include the “Distribution certificate” ( red rect)

Now,You have two way to fix it

but the main purpose of them are same , just “Match Certificates”

  1. Recreate a new “Distribution profile”( blue rect) include the “Distribution certificate”( red rect)

Note: If you choose the second way, don’t forget to get .p12 file from owner, or you will not be allowed to use the new certificate