(solved) iOS signing is choosing the wrong certificate to use

Bitrise Build Issue Report template

Description of the issue

Code signing error: Provisioning profile “BR Firefox WidgetKit App Store” doesn’t include signing certificate “iPhone Developer”.
We have 2 certificates installed (see screenshot), one is developer the other is production. For some reason the signing step is trying to resolve the provisioning profile against the developer cert, and not the proper production one.

Environment / Build log

https://app.bitrise.io/build/98da808e01b8e0e6#?tab=log

Which build Step causes the issue and which version of the step?

xcode-archive@2 (exit code: 1)

Is the ‘Multiple Identities found’ a problem? ‘firefox-ios.p12’ is the correct cert to be using, but it isn’t being resolved against the provisioning profile.

Is there some way to specify the cert to use that matches the provisioning profile being used?

Solution was to explicitly add CODE_SIGN_IDENTITY = "iPhone Distribution"; to the targets in the pbxproj that were having this problem for the given release configuration.

The multiple identities found was what made me suspect a Bitrise problem, but that was not the case.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.