Specify a provisioning profile that includes Push notification Entitlement, on IOS App

Hello,
Could you please help me, when I start to build the app it shows me the message:
Specify a provisioning profile that includes Push notification Entitlement when firebase messaging or Notifications are enabled.
How to solve this?

Regards,
Sokha

I presume you are working on a Mac…
Have a look at section 8.3 Create Provisioning Profile in Installing and Building Apps on a Mac and section 17.4. Firebase Messaging.

image

Thank you so much for your response.
Now it works.