I\'m trying to distribute a new version of the app (it can be installed OTA) and I got the error:
\"Code Sign error: No matching provisioning profile found: Your
I got this issue running Xcode 7.2.1 and found out that I had multiple provisioning profiles with the same name (The name on the developer portal).
By navigating to ~/Library/MobileDevice/Provisioning Profiles and removing all old provisioning profiles with the same name I was able to solve this problem.
In the terminal, navigate to the provisioning profile folder:
cd ~/Library/MobileDevice/Provisioning\ Profiles
List all provisioning profiles with your name:
grep -ar 'MyProvisioningProfileName' .
-a
means that we treat all files as ASCII text.
-r
means that we will search all subdirectories listed.
This should produce a list of all provisioning profiles with the same name, e.g.
./123ha32ba-b5df-abee-12yb-12a34b216ba8.mobileprovision: MyProvisioningProfileName
./214hj32cf-bdfh-1ebe-bba4-7ba32b2165ha.mobileprovision: MyProvisioningProfileName
./321habc2f-jk32-bbae-5tga-yha234b16lka.mobileprovision: MyProvisioningProfileName
By deleting every provisioning profile you don't want (or deleting all and downloading a new one from the developer profile.) this problem went away.