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

前端 未结 30 1393
名媛妹妹
名媛妹妹 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:19

    For me even thou the distribution certificate and provisioning profile was available for Xcode, selecting Automatic manage signing during the distribute process made it fail. I did the following. As mentioned before I created a new distribution certificate and provisioning profile and then during distribute process manually selected the certificate and provisioning profile and Voilaaaa. Also made sure I am on the latest version 10.1.

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

    For me it worked to delete a Capability and then add it back.

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

    I did try all the answers above and had no luck. After that I restart my iPhone and problem seems gone. I know it is so stupid but it worked. Answers above most probably solves the problem but if not try to restart your iOS device.

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

    Use clean build folder (command + shift + K) and rebuild app can shortly fix this issue. However, the build time will increase since you have cleaned the build folder.

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

    Make sure you:

    1) Have a registered provisioning profile for your device.

    2) Device must be added to the Development profile and updated.

    If you still run into issues check your target's build settings.

    Make sure you:

    1) CODE_SIGNING_REQUIRED in User-Defined is set to YES.

    2) Check Signing options are correct. If the problem persists switch to Manual settings instead of automatically.

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

    [edit] Note 2020: I used to manual sign this project. In projects where I automatically signed, I never had this issue. [/edit]

    I had the same problem, and spent hours searching for an answer, removing profiles, cleaning project, and so on.

    Have you distributed your app? You need to switch back to your developer profile, but not in General under the project settings, but in Build settings.

    Under Signing, look at your Code Signing Identity.

    Make sure that both your Debug and Release are set your iOS Developer, and not iOS Distribution; or your iOS Developer Provisioning profile, if not set to the automatic values.

    The same goes with Provisioning Profile. It should be your developing profile, and not your distribution profile.

    Hope this will help future developers in need.

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