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

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

问题描述

我正在尝试在设备上调试我的应用程序时收到此错误。



我在开发人员门户网站上提到了创建开发配置配置文件。我的配置文件中选择了我的开发设备,我从Target的代码签名身份菜单中选择了正确的配置文件。我重新创建了配置文件多次,并且删除并重新安装并重新创建了项目,但是当我尝试在设备上进行调试时,我得到了。



Btw,adhoc distribution配置文件工作。



我花了整整一天找出一个解决方案,但没有。任何人都有解决方案?

解决方案

可能是因为您的iPhone不能被配置门户识别。



解决方案:



1)在Xcode中,Goto - > Build - >清除所有目标。



2)在组和文件 - >目标 - >展开 - >右键单击您的应用程序,然后选择清洁您的应用程序



3)Goto->窗口 - >管理器



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



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

6)拔掉你的iPhone并重新插上在



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



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

构建和运行。祝你好运!


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

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?

解决方案

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

Solution:

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

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

3) Goto->Window-->Organizer

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

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

6) Unplug your iPhone and replug it in.

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

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天全站免登陆