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
Just set automatic option in Xcode.
Below is what worked for me in XCode 7.
I had to change provision profile in XXXXTests too...
I had this issue this morning. The only way to resolve it was removing all my provisioning profiles from
~Library/MobileDevice/Provisioning Profiles
and downloading again all my provisioning profiles from
Xcode -> Preferences -> Accounts
My project build and works now.
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: <string>MyProvisioningProfileName</string>
./214hj32cf-bdfh-1ebe-bba4-7ba32b2165ha.mobileprovision: <string>MyProvisioningProfileName</string>
./321habc2f-jk32-bbae-5tga-yha234b16lka.mobileprovision: <string>MyProvisioningProfileName</string>
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.
Well, I solved this issue going back to a previous version stored in Time Machine, deleting all certificates and profiles both on Developer website and computer, deleted files in ~Library/MobileDevice/Provisioning Profiles and the certificates stored in Keychain Access. Also checked in project.pbxproj that no PROVISIONING_PROFILE was set.
Then, I loaded the old version in Xcode and I was able to build and archive it.
After that, the newest version worked again.
By the way, if you try to distribute an app to a device running iOS 7.1, read this
Quit Xcode and re-open, this worked for me. Would try first before spending too long attempting to fix it.