Attempted to install a Beta profile without the proper entitlement.

I'm trying to install from Xcode (15.4) to my physical device but I get the following error: Failed to install embedded profile for <bundle identifier> : 0xe800801f (Attempted to install a Beta profile without the proper entitlement.)

The project was successfully building previously, but after encountering an issue while implementing Infobip (a 3rd party library for push notifications) where we weren't getting notifications sent from the Infobip dashboard, we had to change Provisioning Profile to one with a production setup for the aps-environment (given that the suggestion from the Infobip support team was to ensure that the provisioning profile and environment match). Note that it was development before.

After downloading the new Provisioning Profile onto Xcode, the project fails to build now with the error mentioned above. I don't know what to do now, and I'm stuck.

Attempted to install a Beta profile without the proper entitlement.
 
 
Q