ios 未找到有效的签名身份,配置文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12442837/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:09:18  来源:igfitidea点击:

valid signing identity not found, provisioning profile

iosxcode4provisioning-profile

提问by AlexC

I know this question is used a lot, but I did not really find my case:

我知道这个问题经常被使用,但我并没有真正找到我的案例:

I Use Xcode 4.4.1, and for updating my provision profile/certificates, I just use refresh button under "LIbrary/Provisioning Profiles" and it works like a charm, gets updated, I checked my Keychain Access. And I can see the certificates.

我使用 Xcode 4.4.1,为了更新我的配置文件/证书,我只使用“库/配置文件”下的刷新按钮,它就像一个魅力,得到更新,我检查了我的钥匙串访问。我可以看到证书。

But ALL my Provisioning Profiles in status are: "valid signing identity not found" except the one, which is "IOS Team Provisioning" --> developer mode.

但是我的所有配置文件状态都是:“未找到有效签名身份”,除了“IOS 团队配置”--> 开发人员模式。

ALl distribution one are "valid signing identity not found" :(.

所有发行版都是“未找到有效签名身份”:(。

How can I fix this issue ?

我该如何解决这个问题?

1 More thing. I use the same certificate before on my OLD macbook and worked with no issue. Not I try to setup a new machine and this is what I get. DO you think it can be a conflict between 2 MACs? If yes, can you please help me how can I fix it (I have to remove from the old machine "developer mode" ?).

1 更多的东西。我之前在我的旧 macbook 上使用了相同的证书并且没有问题。不是我尝试设置一台新机器,这就是我得到的。您认为这可能是 2 个 MAC 之间的冲突吗?如果是的话,你能帮我解决这个问题吗(我必须从旧机器中删除“开发者模式”?)。

I really appreciate any help.

我真的很感激任何帮助。

UPDATE:

更新:

Thanks to Alan Moore, I exported all Private key from old MAC. It for all al apps, the status is valid, but now is another issue, new apps.

感谢 Alan Moore,我从旧 MAC 导出了所有私钥。对于所有应用程序,状态都是有效的,但现在是另一个问题,新应用程序。

Because I revoked the Distribution Certificate, all new apps are on new certificate and all new one are "valid signing identity not found". :(

因为我撤销了分发证书,所以所有新应用程序都在新证书上,所有新应用程序都是“未找到有效签名身份”。:(

And because I revoked the old certificat, for all apps I have to renew the certificate, and once I do it, in my XCODE it becomes "valid signing identity not found".

因为我撤销了旧证书,所以对于所有应用程序,我都必须更新证书,一旦我这样做了,在我的 XCODE 中它就变成了“未找到有效签名身份”。

It is pretty weird issue, not even sure how can i fix this :(

这是非常奇怪的问题,甚至不知道我该如何解决这个问题:(

Thank You!

谢谢你!

回答by nooitaf

You will have to do an export - import from your old mac.

您必须进行导出 - 从旧 Mac 导入。

Export:

出口

  1. In the XCode Organizer, select your team in the Teams section.
  2. Click Export.
  3. Specify a filename and a password, and click Save.`
  1. 在 XCode Organizer 中,在 Teams 部分选择您的团队。
  2. 单击导出。
  3. 指定文件名和密码,然后单击保存。`

The file produced contains the items you need to code sign apps, including the provisioning profiles, certificates, and private keys needed to install apps in development on a device.

生成的文件包含您对应用程序进行编码所需的项目,包括在设备上安装正在开发的应用程序所需的配置文件、证书和私钥。

Import:

进口

  1. In the XCode Organizer, select your team in the Teams section.
  2. Click Import.
  3. Select the file containing your code signing assets.
  4. Enter the password for the file, and click Open.
  1. 在 XCode Organizer 中,在 Teams 部分选择您的团队。
  2. 单击导入。
  3. 选择包含代码签名资产的文件。
  4. 输入文件的密码,然后单击“打开”。

(If you don't see the Team section in the devices organizer:Drag the password-protected file that contains your code signing assets to the Xcode icon in the Dock.)

(如果您在设备管理器中没有看到 Team 部分:将包含您的代码签名资产的受密码保护的文件拖到 Dock 中的 Xcode 图标。)

回答by Alan Moore

You probably need to migrate your provisioning distribution certificate/key pair as described by Apple. You can usually accomplish this by exporting on the old mac, copy over, and import.

您可能需要按照 Apple 的描述迁移您的配置分发证书/密钥对。您通常可以通过在旧 Mac 上导出、复制和导入来完成此操作。

Apple documentation describes this here:

Apple 文档在此处对此进行了描述:

https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TROUBLESHOOTING_FAQ-WHAT_DOES__VALID_SIGNING_IDENTITY_NOT_FOUND__MEAN_AND_HOW_DO_I_RESOLVE_IT_

https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TROUBLESHOOTING_FAQ-WHAT_DOES__VALID_SIGNING_IDENTITY_NOT_FOUND__MEAN_AND_HOW_DO_IT

You will probably need to export the keychain private key from Keychain access on your old computer which is associated to your distribution certificate. Alternatively you can start afresh with a new key and certificate.

您可能需要从与您的分发证书相关联的旧计算机上的钥匙串访问中导出钥匙串私钥。或者,您可以使用新的密钥和证书重新开始。