I implemented the FindIdentity utility only with full certificate names in mind. The value we pass to ImportCodeSigningIdentities task is wired to the exportOptions.plistsigningCertificate field.
This field may or may not contain a full certificate name. From the xcodebuild manpage:
signingCertificate : String
For manual signing only. Provide a certificate name, SHA-1 hash, or automatic selector to use for signing. Automatic selectors allow Xcode to pick thenewest installed certificate of a particular type. The available automatic selectors are "Mac App Distribution", "iOS Developer", "iOS Distribution", "Developer ID Application", "Apple Distribution", "Mac Developer", and "Apple Development". Defaults to an automatic certificate selector matching the current distribution method.
This patch implements the missing logic to work with SHA-1 certificate ids and automatic selectors I also added support for the older iPhone Distribution and iPhone Developer selectors.
Description
I implemented the
FindIdentity
utility only with full certificate names in mind. The value we pass toImportCodeSigningIdentities
task is wired to theexportOptions.plist
signingCertificate
field.This field may or may not contain a full certificate name. From the
xcodebuild
manpage:This patch implements the missing logic to work with
SHA-1
certificate ids andautomatic selectors
I also added support for the olderiPhone Distribution
andiPhone Developer
selectors.Changes