No Profile for team error on Jenkins using fastlane gym

I prefer to use a combination of Jenkins and fastlane to build and distribute my iOS application. Recently I tried to make a CI/CD server using Jenkins and fastlane and then I faced an issue that I had struggled to fix it. The issue is normally coming from a build process using gym in fastlane. The error log is normally like below.

No profile for team 'TXVIGNOXXXX’ matching ‘iPhone_Development' found: Xcode couldn't find any provisioning profiles matching 'TXVIGNOXXXX/iPhone_Development'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor 

So how do I solve this issue?

  1. Check your Provisioning ProfileMostly you can find this advice on the web. Provisioning Profile files are saved in the path /Users/{{UserAccount}}/Library/MobileDevice/Provisoning Profiles and then your right provisioning file should be there. But my case wasn’t like this. I use fastlane match to create and update Provisioning Profile and there should not be this issue.
  2. Check your Team IDFind your team ID and then check the Team ID is correct.
  3. Permission issue The third one was my issue. In my case, I use sudo command to run fastlane release. But the problem was the Provisioning Profile belongs to Jenkins user account. Then I just removed the sudo command and then now it works. Still, I am not 100% sure that the issue was caused by the permission to run fastlane command.

I hope that this article could help someone has a similar issue.

Leave a Reply