Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Fastlane to enable capabilities in provision profile?

Our org uses Fastlane to manage out codesign stuff. We have the github repo set up and been using it for a while.

For Xcode13 we added time sensitive usernotifications capability to our entitlement file.

  <key>com.apple.developer.usernotifications.time-sensitive</key>
  <true/>

From my research it seems like we have to re-generate the provision profile. How can I achieve this with Fastlane?

is using sigh the right way? I am hesitating to do any actions because all the iOS dev share the certificate git repo, so I am being very cautious.

like image 681
OLIVER.KOO Avatar asked Aug 24 '21 20:08

OLIVER.KOO


People also ask

How do you use a provisioning profile?

Generating a provisioning profile Navigate to Provisioning Profiles > All. Select the + from the top right corner. For development select the correct project type under Development , or for distribution select the correct one under Distribution and click continue. Select the App ID you would like to use.

How does Fast Lane Match work?

Just set up individual developer accounts or an entire Google Group containing your team as readers and writers on your storage bucket. ... and log in with their Google account. Then, when they run fastlane match , match will use these credentials to read from and write to the storage bucket.

What does Fastlane match nuke do?

Use the match_nuke action to revoke your certificates and provisioning profiles. Don't worry, apps that are already available in the App Store / TestFlight will still work. Builds distributed via Ad Hoc or Enterprise will be disabled after nuking your account, so you'll have to re-upload a new build.


Video Answer


1 Answers

The following worked for me

  1. update the entitlements in provisioning profile, log into the Apple developer site and go to the "Certificates, Identifiers & Profiles" section. Select Application IDs on the left, and find the app ID for the app you are trying to build. Click the edit button and turn on the entitlement for Time Sensative User Notification (or whatever you need to add)
  2. Run Fastlane match to regenerate the profiles fastlane run match type:"<enterprise or development>" git_branch:"<internal or production>" generate_apple_certs:"false" git_url:"<link to your fastlane cert repo>" then follow the prompt.
like image 91
OLIVER.KOO Avatar answered Oct 17 '22 12:10

OLIVER.KOO