在调试模式下找不到此可执行文件的有效配置文件 [英] A valid provisioning profile for this executable was not found for debug mode

查看:44
本文介绍了在调试模式下找不到此可执行文件的有效配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在设备上调试我的应用时遇到此错误.

I am getting this error while I am trying to debug my app on device.

我创建了开发人员门户中提到的开发配置文件.在配置文件中选择了我的开发设备,我正在从 Target 的代码签名标识菜单中选择正确的配置文件.我多次重新创建了配置文件,还删除并重新安装了它并重新创建了项目,但每当我尝试在设备上调试时,我都会得到它.

I created development provisioning profile as it is mentioned at the developer portal. My development device is selected in the profile and I am selecting the correct profile from Target's code signing identity menu. I recreated provisioning profile for several times and also removed and reinstalled it and recreated the project but I am getting that whenever I try to debug on device.

顺便说一句,临时分发提供配置文件有效.

Btw, the adhoc distribution provision profile works.

我花了一整天的时间来寻找解决方案,但一无所获.有人有解决办法吗?

I spent my whole day to find out a solution but nothing. Anyone have a solution?

推荐答案

这可能是因为配置门户无法识别您的 iphone.

It could be because your iphone is not recognized by the provisioning portal.

1) 在 Xcode 中,转到 --> 构建 --> 清理所有目标.

1) In Xcode, Goto --> Build --> clean all targets.

2) 在组和文件"中 --> 目标 --> 展开它 --> 右键单击​​您的应用并选择清理您的应用"

2) In "Groups & Files" -->Target --> expand it --> right click your app and select Clean "your app"

3) 转到->窗口-->组织者

3) Goto->Window-->Organizer

4) 在左侧的设备选项卡中,选择您的 iphone

4) In the Devices tab on the left, select your iphone

5) 在所选 iphone 的 Provisioning 部分删除所有当前配置文件(如果有)

5) In the Provisioning section of the selected iphone delete all the current profiles (if any)

6) 拔下 iPhone 并重新插入.

6) Unplug your iPhone and replug it in.

7) 转到->窗口-->管理器-->右键单击您的 iPhone -->将设备添加到配置门户

7) Goto->Window-->Organizer-->right click your iPhone -->Add device to provisioning portal

8) 现在确保您在编辑项目设置 -> 构建 --> 代码签名中选择了适当的代码签名身份

8) Now make sure you have selected the appropriate code signing identity in edit project settings -> build --> code signing

构建并运行.祝你好运!

Build and run. Good luck!

这篇关于在调试模式下找不到此可执行文件的有效配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆