简体   繁体   中英

fastlane match generate new certificate with push notifications enabled

I'm a bit confused on how I'm supposed to add push notification capabilities to an app where I have generated provisioning profiles/certs using fastlane match

I'm trying to run my device in development after enabling and setting up push notifications but keep seeing the error that the capabilities are not supported by the development provisioning profile that match generated for me

I have tried a number of times to nuke the development cert and generating a new one but it continues to create a certification without push notification capabilities enabled

What is the process I am supposed to go through to add push notifications and generate a new provisioning profile/certificate with push notification capabilities?

I had the same issue!

You need to also add the capability to the app identifier via the apple developer portal . Once the capability is added to your app's identifier, match will generate provisioning profiles with the correct capabilities.

From Apple's docs :

Important

In your developer account, also enable the push notification service for the App ID assigned to your project. For more information about configuring your developer account, go to your Developer Account page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM