xcode“未找到此可执行文件的有效配置文件”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29366158/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:53:55  来源:igfitidea点击:

xcode "A valid provisioning profile for this executable was not found"

iosxcodexcode6iphone-6

提问by patman

Since upgrading to xcode 6 yesterday i have problems running an app from xcode on one of my devices and i have no idea why.

自从昨天升级到 xcode 6 以来,我在我的一台设备上从 xcode 运行应用程序时遇到问题,我不知道为什么。

The message is:

消息是:

A valid provisioning profile for this executable was not found

I have checked all the solutions from A valid provisioning profile for this executable was not foundand "A valid provisioning profile for this executable was not found" error when trying to run unit testsbut everything is correct.

我已经检查了未找到此可执行文件的有效配置文件中的所有解决方案,并且在尝试运行单元测试时出现“未找到此可执行文件的有效配置文件”错误,但一切正常。

So i have the right provisioning profile set, it is installed in the list of provisioning profiles on the device (and not expired) and the build configuration is debug.

所以我设置了正确的配置文件,它安装在设备上的配置文件列表中(并且没有过期)并且构建配置是调试。

I have no further ideas now.

我现在没有进一步的想法。

EDIT: another device has no problem. So it might be specific to iphone 6.

编辑:另一个设备没有问题。所以它可能特定于 iphone 6。

回答by Priyanka Mistry

As your profile is working on one device that means issue is related to your iPhone 6 device.

由于您的个人资料在一台设备上运行,这意味着问题与您的 iPhone 6 设备有关。

You can try the following steps :

您可以尝试以下步骤:

1) When you create your provision profile, check whether your device is selected for that particular device. If not then select and again download the provision profile and install it.

1) 创建配置文件时,请检查是否为该特定设备选择了您的设备。如果没有,则选择并再次下载配置文件并安装它。

2) Just see in your phone whether you have any expired provision profiles. If yes then delete all expired provision profile first.

2) 只需在您的手机中查看您是否有任何过期的配置文件。如果是,则首先删除所有过期的配置文件。

3) Delete your application from your device if it is previously installed.

3) 如果之前安装过,请从您的设备中删除您的应用程序。

4) Select proper provision profile in your project and hit run.

4)在您的项目中选择适当的配置文件并点击运行。

回答by duongvanthai

Try following steps:

尝试以下步骤:

  1. Open Build Settings > Select Code Signing
  2. Provisioning Profile > Automatic.
  1. 打开构建设置 > 选择代码签名
  2. 供应配置文件 > 自动。

This is work for me. :)

这对我来说是工作。:)