Xcode 10: A valid provisioning profile for this executable was not found

前端 未结 30 1395
名媛妹妹
名媛妹妹 2020-11-29 15:12

Since yesterday I\'ve been getting the following error when trying run an app on my device: \"A valid provisioning profile for this executable was not found.\". This is afte

相关标签:
30条回答
  • 2020-11-29 15:30

    In my case, where nothing else helped, i did the following:

    1. change the AppID to a new one
    2. XCode automatically generated new provisioning profiles
    3. run the app on real device -> now it has worked
    4. change back the AppID to the original id
    5. works

    Before this i have tried out every step that was mentioned here. But only this helped.

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

    @Stephen tks this resolved for me. I just need to go --> File --> WorspaceSettings --> Build Settings(change here to "Legacy Build System")

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

    After I tired most of solution, I found what its make it work without any issue for me, Its resolved by go to developer.apple.com then account then Certificates, identifiers & profiles and I click on All link under Devices and then add a new device.

    then you need to set device name, and uuid, and after save it. Go to xcode and clean cache, build, and all its work fine.

    Note 1: make sure your team is set truth.

    Note 2: You can get uuid by connect device to your mac device, and click on iTunes, and press on security label, you will see UUID.

    Which This Answer its helpful too.

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

    Today I had the same error while installing an app to my device. The problem occurred after I updated to the new xCode 11.4.

    What I did to fix the issue:

    • Unpaired device (Xcode > Window > Devices And Simulators > Left click device to unpair device.
    • Restart iPhone
    • Clean Build Folder (Xcode > Product > Clean Build Folder)
    • Clean Derived Data (in ../library/Developer/Xcode/DerivedData)
    • Clean Build Folder again (Xcode > Product > Clean Build Folder)
    • Build app on device.
    0 讨论(0)
  • 2020-11-29 15:33

    I had the same issue (XCode 11) and nothing worked what was written here.

    My issue was that I had iOS Beta (13.3) on my Phone. After reverting that everything worked fine again.


    Idea: Maybe the device caches some Information about the provisioning profile too, so a factory reset of the phone might also fix it?

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

    Open Keychain Access on your Mac and delete the old expired Apple Development certificates. This solved the issue for me.

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