iOS Question [solved] Compilation issue with notifications in debug mode

voxel

Active Member
Licensed User
Hello,
I am trying to set up a Firebase push notification.
Compilation works fine in Release mode using the 'AppStore' provisioning profile.
However, I get a compilation error in Debug mode with the "Ad hoc" provisioning profile. This profile has no "Enabled Capabilities"—is that normal? My App ID is "fr.*".

I read that you cannot add the notification capability to an App ID that uses a wildcard (*).

I added: `#Entitlement: <key>aps-environment</key><string>production</string>`
I added the iFirebaseNotification library.

Here is the error:
/Users/ereluziel/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: error: Provisioning profile "provision" doesn't support the Push Notifications capability. (in target 'B4iProject' from project 'B4iProject')
/Users/ereluziel/Documents/UploadedProjects/<user id>/B4iProject.xcodeproj: error: Provisioning profile "provision" doesn't include the aps-environment entitlement. (in target 'B4iProject' from project 'B4iProject')

How can I add the notification capability for Debug mode?

I'm lost, thanks for your help.
 

voxel

Active Member
Licensed User
I've found the solution: I need to create a new "ad hoc" provisioning profile by selecting my specific App ID (rather than using a wildcard).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…