Xcode 5: “No such provisioning profile was found …” error

后端 未结 13 1268
慢半拍i
慢半拍i 2021-02-13 21:46

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

相关标签:
13条回答
  • 2021-02-13 22:07

    Just set automatic option in Xcode.

    0 讨论(0)
  • 2021-02-13 22:07

    Below is what worked for me in XCode 7.

    I had to change provision profile in XXXXTests too...

    0 讨论(0)
  • 2021-02-13 22:08

    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.

    0 讨论(0)
  • 2021-02-13 22:11

    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.

    0 讨论(0)
  • 2021-02-13 22:14

    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

    0 讨论(0)
  • 2021-02-13 22:14

    Quit Xcode and re-open, this worked for me. Would try first before spending too long attempting to fix it.

    0 讨论(0)
提交回复
热议问题