找不到此可执行文件的有效配置文件
我刚刚打开了一个旧项目来应用错误修复。
修复该错误 2 分钟后,我将其构建到我的设备上,但收到此错误“未找到此可执行文件的有效配置文件”。
在疯狂的故障排除中,我完全制作了新的发行版和开发人员证书,以及应用程序的新证书。
尽管如此,还是同样的错误。
谁能提供一份要检查的事项清单?我可以通过哪些方式进一步解决此问题?
干杯。 附言。我讨厌供应。
编辑:我正在使用团队配置文件...这是一个问题吗?我只是想调试设备..这不应该是问题。
I just cracked open an older project to apply a bug fix.
After 2 minutes of fixing the, bug I go to build it to my device, and I get this error "A valid provisioning profile for this executable was not found."
In mad trouble shooting, I completely made new distribution and developer certificates, as well as a new certificate for the app.
Still, same error.
Can anyone provide a list of things to check? Ways I can troubleshoot this further?
Cheers.
PS. I hate provisioning.
EDIT: I'm using the team provisioning profile... is that a problem? I'm just trying to debug to a device.. it shouldn't be an issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(15)
好的,所以我解决了这个问题,在尝试为应用程序商店构建时,我将“运行”方案的构建配置从调试更改为发布..并且自然发布使用了分发证书..这不是(并且可以不会)安装在我的设备上。
我讨厌 xcode 4。(它的这个方面:P)
到底什么是方案? :S
Ok, so I solved this, somehow in trying to build for the app store I changed the build config for the "run" scheme from debug to release.. and naturally release was using a distribution cert.. which wasn't (and can't be) installed on my device.
I hate xcode 4. (this aspect of it :P)
What is a scheme anyway? :S
我也有一个解决方案。昨晚我也遇到了同样的错误。我有一个之前正在编译的程序,现在我正在向我的应用程序添加更新,但显示了相同的错误。问题是我忘记将我的配置文件更改回开发人员。 (将应用程序上传到 App Store 时将其设置为“分发”)。
以下是 Xcode 4.6 的设置。
在您的应用程序中单击目标 ->您的应用程序名称 ->代码签名身份。
将 iPhone Distribution 更改为 iPhone Developer。
您的应用程序现在将编译。
I have a solution as well. This happened to me last night with the exact same error. I had a program that was previously compiling and now that I am adding an update to my app, the same error was displayed. The problem is that I forgot to change my provisioning profile back to Developer. (You set it to Distribution when uploading your app to the App Store).
Here are the settings for Xcode 4.6.
In your app click Targets -> YourAppName -> Code Signing Identy.
Change iPhone Distribution to iPhone Developer.
Your app will now compile.
1- 目标 ->点击应用程序->构建设置->代码签名:
确保“调试”和“任何 iOS SDK”均设置为“iPhone 开发”
2- 产品 ->方案->编辑方案:
确保构建配置设置为调试。
1- TARGETS -> click the app-> Build Setting-> Code Signing :
Make sure that both "Debug" and "Any iOS SDK" are set to "iPhone Development"
2- Product -> Scheme -> Edit Scheme:
Make sure Build Configuration is set to Debug.
经过几个小时的努力,我找到了下面的解决方案。
只需打开“文件”-> “项目设置”或“工作空间设置”
从“构建系统”中选择“旧版构建系统”
然后将其设为“完成”。
现在再次清理并运行您的应用程序。有用。
After Struggling many hours I found a solution below.
Just open "File" -> "Project Setting" or "Workspace Setting"
Select "Legacy Build System" from "Build System"
then make it "Done".
Now clean and run your app again. It Works.
我对 Xcode 不太了解,但每当我遇到问题时,我的第一个行动就是清理项目。我针对这个问题尝试过,并且成功了。
I don't know much about Xcode, but whenever I do encounter a problem, my first action is to clean the project. I tried that for this problem, and it worked.
您需要在目标级别和项目级别分配供应配置文件。因此,如果您使用 Xcode 4,您可以看到两列。因此,您需要在两者中分配配置文件。另外,请确保
如果上述不起作用,请在所有配置中选择配置配置文件。只是想尝试一下。
You need to assign provision profile at target level as well as Project level. So if you are using Xcode 4 you can see two column. So you need to assign provision profile in both. Also, Make sure
Select provision profile in all the configuration if above not work. Just to give it a try.
您需要将设备添加到配置门户,并且需要在设备上安装该配置文件。在 Xcode4 中,一旦您在网站上添加了设备 ID,您就可以通过管理器完成所有这些操作。
You need to add your device to the provisioning portal and that profile needs to be installed on the device. In Xcode4 you can do all this via organiser once you have added the device id on the site.
为此,您可以通过以下方式检查:
1) 首先确认您的 Mac 中已正确安装证书。证书分发和证书分发应适当添加显影剂。如果不存在,则创建新的,然后再次安装它。
2) 检查开发人员、分发和配置文件AdHoc 配置文件安装正确。并且这些所有配置文件都必须与各自的证书绑定。如果配置文件已过期,则创建新的配置文件并再次安装它。
3) 然后在您的项目中设置配置文件。
我希望这些检查对您有所帮助,并且您将能够在设备中测试您的应用程序。
干杯。
For that, you can check it in below way:
1) First confirm that certificate is installed in your mac properly. Both certificate Distribution & Developer should be added properly. And if it is not there, then create new and then again install it.
2) Check profiles Developer, Distribution & AdHoc profile install properly. And these all profiles must be bounds with respective certificates. And if profile was expire then create the new one and again install it.
3) Then set profiles in your project.
I hope these all check will be helpful to you and you will able to test your app in device.
Cheers.
除了上述所有响应之外,还尝试删除权利文件并重新创建它并准确提供应用程序标识符。
我并不是说上面的错误是权利文件的原因,但可能是一个机会。尝试一次,如果它有效,你会很高兴。
总氮Q
in addition to all the above responses try also deleting entitlements file and re-create it and provide the application identifier accurately.
i dont say the above error is bcoz of entitlements file but might be a chance.try once,if it works u are happy.
TNQ
我在将某个应用程序移植到 iPad 上时遇到了问题,尽管它可以在其他 iPad 和 iPhone 上运行。我最终通过配置门户使用 40 位设备 ID 手动添加来解决了这个问题。
I had problems with getting an app onto an iPad, even though it worked on other iPads and an iPhone. I eventually solved it by adding it manually using the 40 digit device ID via the provisioning portal.
我的问题是由于我的个人资料上有“有效签名身份错误”。我撤销了我的证书,删除了我的个人资料,重新创建了所有内容,然后执行了这篇文章中答案中的步骤:
Xcode 4 - 在新安装的 Macintosh 上配置配置文件时出现“未找到有效签名身份”错误
My problem was due to having "valid signing identity error" on my profile. I revoked my certificate, delete my profile, recreated everything and then did the steps from the answer on this post:
Xcode 4 - "Valid signing identity not found" error on provisioning profiles on a new Macintosh install
1) 首先确认您的 Mac 中已正确安装证书。
2) 证书分发&应适当添加显影剂。
3)如果不存在,则创建新的,然后再次安装。
4) 然后在您的项目中设置配置文件。
我希望这些检查都会有所帮助。
1) First confirm that certificate is installed in your mac properly.
2) Both certificate Distribution & Developer should be added properly.
3) And if it is not there, then create new and then again install it.
4) Then set profiles in your project.
I hope these all check will be helpful.
就我而言,这是两个月前我在 iPhone 上手动设置时间时出现的问题。但当我改为自动设置时间时,效果很好。
设置
->常规
->日期和日期时间
->自动设置时间
如果不起作用,请自动设置 mac 和 mac 的时间。 iPhone,应该可以正常使用。
In my case, it was the problem when I setup my time manually two month earlier on my iPhone. But when I changed to set time automatically, it worked fine.
Setting
->General
->Date & Time
->set time automatically
If it does not work, set time automatically of both mac & iPhone, it should work fine.
我最近遇到了这个问题,我的问题是我的主要账户持有人必须重新批准协议。
I recently just had this problem and my issue was that my main account holder had to re-approve the agreement.
像屏幕上一样更改设置。
Change settings like on screen.