'What are code signing identities in Xcode about?

What are "code signing identities" in Xcode?

Are they the certificates?

Are they the private keys?

Are they the app ids?

Are they the provisioning profiles?

If I go to the target build settings, it asks for the code signing identity, so I need to figure this out.

I thought we signed code using our private key. None of my private key names show up, however. It shows a list of certificates (I think, though I am not even sure.)



Solution 1:[1]

You can only sign your app with a certificate.

That certificate is either:

  • dev certificate (build from Xcode into your physical device)
  • enterprise certificate (build for employees)
  • app store certificate (build for real world customers)

The following will list certs you have available on your mac for signing.

security find-identity -p codesigning -v

Example mine returns:

1) A0D1B4FBH9768DA909766DC27D6882088A994473 "Apple Development: Mohammad F (5ABCS7TRT6)"
2) 5404044732CF2A011D95C28222DCF0000D3B84E "Apple Development: [email protected] (97ENL333NA)"

My two certs can be identified by either:

A0D1B4FBH9768DA909766DC27D6882088A994473 OR "Apple Development: Mohammad F (5ABCS7TRT6"

5404044732CF2A011D95C28222DCF0000D3B84E OR "Apple Development: [email protected] (97ENL333NA)"

Summary

Code signing identity is anything that can uniquely identify your certificate.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1