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

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

    Encountered same issue, we've had multiple configurations in Xcode project, let's say Debug-Staging, Debug-Production. We then unified those and used only one configuration Debug. But the old one (no longer existing) was stuck in scheme for run phase, so once you tried to run, Xcode showed you this message. Which makes sense as provisioning profiles are set up in build settings based on configuration.

    So run scheme looked like this:

    While project configurations were setup like this.

    Changing scheme to use configuration that is still available in project is what fixed this issue for me.

提交回复
热议问题