I encountered this error when I exported ipa for AD Hoc testing.
To fix it, i revoked my existing ios distribution certificate in Member Center. After than, a new one can be generated in XCode.
FYI: Revoking existing certificate won’t affect your apps in App store.
Revoking my existing ios distribution certificate in Member Center worked like a champ
Worked very well 🙂