Codeign错误:删除过期的配置文件后找不到配置文件 [英] Codesign error: Provisioning profile cannot be found after deleting expired profile

查看:100
本文介绍了Codeign错误:删除过期的配置文件后找不到配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图重建一个刚刚正常工作的应用程序。收到个人资料已过期的消息,因此我将其从iPod和iTunes中删除。当我选择一个新的配置文件(标识符中带有*)时,我现在收到错误:

Tried to rebuild an app that was just working yesterday. Got a message that a profile had expired, so I removed it from the iPod and from iTunes. When I chose a new profile (one with an * in the identifier), I now get an error:

Code Sign Error: Provisioning Profile (long string) can't be found.

我缺少什么?我查看了相关问题并且没有看到这种情况。

What am I missing? I looked through related questions and didn't see this scenario already.

推荐答案

有时你的xcode项目文件搞砸了,特别是如果你有一个旧项目,并首先用旧版本的xcode / iphone sdk创建它。您需要做的是在文本编辑器中打开项目文件,从错误中搜索长字符串并手动删除该行。实际上,您应该继续删除任何指向任何配置文件的行。然后在xcode中重新打开项目,转到设置并重新选择新的配置文件。这清除了大多数时候的问题。指向配置文件的行将如下所示:

Sometimes your xcode project file gets messed up, especially if you have an old project and first created it with an older version of xcode/iphone sdk. What you need to do is open up the project file in a text editor, search for the 'long string' from your error and manually erase that line. In fact, you should just go ahead and erase any line that points to any provisioning profiles. Then reopen the project in xcode, go to the settings and reselect your new profile. This clears up issues like that most of the time. The lines that point to the provisioning profiles will look like this:

PROVISIONING_PROFILE = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "487F3EAC-05FB-4A2A-9EA0-31F1F35760EB";

这篇关于Codeign错误:删除过期的配置文件后找不到配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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