我有一台苹果机,用Xcode 4开发iPhone应用。 我现在有一台新麦金塔电脑,新安装了……一切。

当打开在旧Mac上构建的Xcode项目时,我无法在配置为开发版iPhone的iPhone上运行应用程序。 Xcode 4管理器告诉我在配置文件中“没有找到有效的签名标识”。

我猜这与我之前在旧Mac上生成的.certSigningRequest文件有关(我有该文件的备份),但我必须在新Mac上处理它吗?

另一件奇怪的事情是,我在管理器中看不到我的5个现有配置文件(在苹果配置门户上定义),即使刷新并输入我的配置门户登录名和密码后:


当前回答

我的MAC操作系统最近死机了。我重新安装了macOS 10.7.4和Xcode 4.5。但是所有配置配置文件都在管理器中显示以下消息。

Valid Signing identity not found

我苦苦寻求了好几天的帮助。后来我意识到,如果您已经从一个系统迁移到另一个系统(或格式化了您的系统),您需要将您的密钥链从旧系统导出到新系统(或安装的新操作系统)。

您还可以在管理器中导出您的开发人员简介/团队开发人员简介。

Organizer > Teams > Developer Profile > Export

希望能有所帮助。

其他回答

我解决了“有效的签名身份未找到”错误或多或少:

Make sure that the certificate in your iOS developer program is also listed in your keychain access and is valid (compare the issue dates). If it is not, either transfer it from your old mac using the instructions from apple reference OR delete it from the website and your keychain access and then recreate it, re-download it and drag it over Xcode. Delete any existing development or distribution provisioning profiles and recreate them based on your new certificate, redownload them and verify from keychain access that everything is valid.

我的MAC操作系统最近死机了。我重新安装了macOS 10.7.4和Xcode 4.5。但是所有配置配置文件都在管理器中显示以下消息。

Valid Signing identity not found

我苦苦寻求了好几天的帮助。后来我意识到,如果您已经从一个系统迁移到另一个系统(或格式化了您的系统),您需要将您的密钥链从旧系统导出到新系统(或安装的新操作系统)。

您还可以在管理器中导出您的开发人员简介/团队开发人员简介。

Organizer > Teams > Developer Profile > Export

希望能有所帮助。

I had the same error but the issue was slightly different. We have a team of developers but we all use the same Apple ID (Developer Account), so when I generated the Provisioning profile, I kept getting the same error as in the subject question. Then although I had downloaded the certificate (that gets prompted as part of the Development Provisioning Assistant steps), I was still getting that error. Then I found the issue was that our Apple Developer account was using a Certificate that was generated on my work mate machine, so I needed to revoke it, and generate a new certificate, then create the provisioning profile.

摘要,从中得到的教训是,用于配置配置文件的证书必须在将使用配置配置文件的同一台计算机上生成。当你有一个开发团队共享同一个Apple ID时,这一点尤其重要。 希望它能帮助到一些人

我遇到这个问题是因为与配置文件相关联的iOS开发证书不在我的钥匙链中。我重新安装了OSX,结果是这样的。我做了以下事情:

developer.apple.com下的证书,标识符和配置文件 选择相应的(有效的)iOS开发证书,下载 双击下载的文件,它被添加到密钥链 整理器中的错误会消失

如果您没有有效的证书,那么生成一个新的证书并使用它创建一个新的配置文件。

你需要从你的旧Mac上复制私钥和证书。在旧Mac上打开Keychain Access,在登录Keychain的Keys类别中查看:密钥应该在那里。您需要导出公钥和私钥,然后复制您的密钥。Pem和你的钥匙。p12安装到新的Mac。

使用Keychain Access导入它们可能会失败,至少在10.6下;你可以使用以下命令:

security import yourkey.p12
security import yourkey.pem