For those who encounter this issue and are using manual signing can check your Code Signing Identity in Build Setting of the target and make sure to select the correct distribution certificate in the release section.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: