Multiple codesigning identities (i.e. certificate

2020-06-12 04:24发布

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 .developerprofile file from my teammate, and was able to upload the app to app store, but cannot test app on device.

In keychain all the certificates are valid.

I tried to deleting 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

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

3条回答
Root(大扎)
2楼-- · 2020-06-12 04:58

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

Build Settings

And on the second "Build Settings":

Build Settings

查看更多
唯我独甜
3楼-- · 2020-06-12 05:10

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.

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

查看更多
啃猪蹄的小仙女
4楼-- · 2020-06-12 05:13

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.

查看更多
登录 后发表回答