xcode 发现多个代码签名身份(即证书和私钥对)匹配

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27519703/
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-09-15 06:22:43  来源:igfitidea点击:

Multiple codesigning identities (i.e. certificate and private key pairs) matching were found

iosxcodexcode6keychainprovisioning-profile

提问by HDdeveloper

Code Sign error: Multiple matching codesigning identities found: Multiple codesigning identities (i.e. certificate and private key pairs) matching “iPhone Developer: Coders (4B4R89J5KK43GU33E64I4347VZ)” were found
CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.0'

I am unable to test the app on the device.

我无法在设备上测试该应用程序。

I also imported the .developerprofilefile from my teammate, and was able to upload the app to app store, but cannot test app on device.

我还.developerprofile从我的队友那里导入了文件,并且能够将应用程序上传到应用程序商店,但无法在设备上测试应用程序。

In keychainall the certificates are valid.

keychain所有的证书都是有效的。

I tried to deleting iOS Provisioning Profiles.

我试图删除iOS Provisioning Profiles.

I also refreshed my setting using these steps

我还使用这些步骤刷新了我的设置

  • In Xcode Preferences
    • > In Accounts click on your Apple ID
    • > Click View Details
    • > Click on your projects Provisioning Profile
    • > Click refresh button bottom left
  • 在 Xcode 首选项中
    • > 在帐户中单击您的 Apple ID
    • > 点击查看详情
    • > 单击您的项目 Provisioning Profile
    • > 点击左下角的刷新按钮

Clean and build again, but still facing the same issue not running on device.

清理并再次构建,但仍然面临未在设备上运行的相同问题。

回答by Chuy47

Make sure you don't have duplicate Certificates in Keychain Access in your Mac. To check this open Keychain Access and within "My Certificates" check that you don't have duplicate certificates, if this is your case, remove the duplicates.

确保您的 Mac 钥匙串访问中没有重复的证书。要检查此打开的钥匙串访问并在“我的证书”中检查您是否没有重复的证书,如果是这种情况,请删除重复的证书。

回答by Markus

In my case, the solution was the automatic "iOS Developer" option (With Xcode 6.2)

就我而言,解决方案是自动“iOS 开发人员”选项(使用 Xcode 6.2)

Build Settings

构建设置

And on the second "Build Settings":

在第二个“构建设置”上:

Build Settings

构建设置

回答by Green Berry

I ran into this problem a few months ago and just ran into it again just now. Last time I fixed it by refreshing my account under Preferences. It did not work this time even after removing/adding all the accounts and clear all xcode related keychain items.

几个月前我遇到了这个问题,现在又遇到了。上次我通过在“首选项”下刷新我的帐户来修复它。即使在删除/添加所有帐户并清除所有与 xcode 相关的钥匙串项目之后,这次它也不起作用。

Finally I changed the Provisioning Profile from "Automatic" to a specific Profile which worked.

最后,我将供应配置文件从“自动”更改为有效的特定配置文件。