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

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

问题描述

试图重建一个昨天还在运行的应用.收到一条消息,说明配置文件已过期,因此我将其从 iPod 和 iTunes 中删除.当我选择一个新的配置文件(标识符中带有 * 的配置文件)时,我现在收到一个错误:

Tried to rebuild an app that was working just 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 创建它.

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.

事实上,您应该继续删除指向任何配置文件的任何行.然后在 Xcode 中重新打开项目,转到设置并重新选择您的新配置文件.大多数情况下,这可以解决此类问题.

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";

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

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