A valid provisioning profile for this executable was not found… (again)

前端 未结 16 774
栀梦
栀梦 2020-11-29 03:57

I know this has been asked and answered multiple times but I\'m tearing my hair out as none of the proposed solutions appears to work.

相关标签:
16条回答
  • 2020-11-29 04:23

    I have spent about a week solving this problem. Most of the answers are sort of magic (no logical purposes for these algorithms) and they were not useful for me. I found this error in Xcode console:

    ERROR ITMS-90174: "Missing Provisioning Profile - iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision."
    

    And found this answer solving this issue. The case is to switch Xcode Build system to the Legacy one.

    I was deploying my Ionic app.

    0 讨论(0)
  • 2020-11-29 04:26

    I had this error because I was testing my app to perform a certain action in the future. In other words, I had a different time on my test device, therefore, the certificate would not allow me to build.

    Apparently, my certificate expires in a few days...

    0 讨论(0)
  • 2020-11-29 04:28

    This happened to me yesterday. What happened was that when I added the device Xcode included it in the wrong profile by default. This is easier to fix now that Apple has updated the provisioning portal:

    1. Log in to developer.apple.com/ios and click Certificates, Identifiers & Profiles
    2. Click devices and make sure that the device in question is listed
    3. Click provisioning profiles > All and select the one you want to use
    4. Click the edit button
    5. You will see another devices list which also has a label which will probably say "3 of 4 devices selected" or something of that nature.
    6. Check the select all box or scroll through the list and check the device. If your device was unchecked, this is your problem.
    7. Click "Generate"
    8. DON'T hit Download & Install – while this will work it's likely to screw up your project file if you've already installed the provisioning profile (see this question for more info).
    9. Open Xcode, open the Organizer, switch to the Devices tab, and hit the Refresh button in the lower right corner. This will pull in the changes to the provisioning profile.

    Now it should work.

    0 讨论(0)
  • 2020-11-29 04:31

    If none of above stated works then check for your device date, make sure your device date doesn't exceed profile expiry date i.e. not set to far future.

    0 讨论(0)
  • 2020-11-29 04:32

    Make sure you have added your device - https://developer.apple.com/account/ios/device/create

    Go into iTunes and click on the serial number and it'll change to the UDID - then right click to Copy the UDID and register it as your device.

    You can then add that device to your provisioning profile.

    0 讨论(0)
  • 2020-11-29 04:33

    Xcode5 has broken this again (congratulations to Apple for failing to bother testing one of their buggiest bits of code. Again).

    A new way to break/fix it:

    If you have:

    1. An old profile on your device (team profile, or non-team profile)
    2. A new profile generated automatically on the App Store, by any copy of Xcode5, even if it's simply an update to the profile you already had
    3. (NB: if any colleague adds themself to the profile, this triggers the above "change")
    4. You use the new "Accounts" dialog to download profiles (NB: this is now REQUIRED by Apple for various situations - all other approaches, including manual download, appear to be unsupported. Even though the Apple Developer site TELLS YOU TO MANUALLY DOWNLOAD! Don't do it! It breaks Xcode5!)
    5. Xcode5 will INCORRECTLY hide AND RENAME that profile in the drop-down selector in Build Settings
    6. (I detest this drop-down. Some idiot at Apple keeps removing information from it, and someone else keeps adding it back, it flip-flops between Xcode point releases. WHY??!?!)
    7. There is NO WAY you can select the correct profile - whatever you select, Xcode5 will use the wrong one

    The solution is easy enough. The "Apple engineering are lazy" solution:

    1. Go to Xcode5 -> Window -> Organizer -> Devices
    2. Select your device
    3. Select provisioning profiles
    4. Delete everything relating to your current project and/or Team (even other projects, if necessary - they can all be downloaded later if still needed!)
    5. Re-build.
    6. You should get an error from Xcode5 that the profile doesn't exist. Even though you manually had seleted the profile that was ALREADY PRESENT on your machine (yep - that dropdown is buggy again. It lies about the profile it selects behind the scenes!)
    7. In the profile selector, select the "real" profile
    8. Build, run - success!
    0 讨论(0)
提交回复
热议问题