Failed to compile CSSM_SignData return code: 8001094A

I have a very nasty code problem: I have 2 Mac computers (M1, M2) and 2 Developer Certificates (C1, C2). Although keychains are similar to M1 and M2, I have the following results with code:

  • codeign (M1, C1) ok
  • codeign (M1, C2) nok
  • codeign (M2, C1) nok
  • codeign (M2, C2) ok

Therefore, when I successfully create my project on M1 with C1, I cannot transfer the repository to M2 and build again with C1, I have to switch to C2 in order to be successful. On error, codeign returns the error message "CSSM_SignData Return: 8001094A" followed by "unknown error -2070 = fffff7ea".

+4
source share
2 answers

To sign your application on a machine, a certificate must be requested only on this computer. So you cannot build from C1 to M2 and vice versa.

Unfortunately, this information is related to project.pbxproj, which is critical and should be supported by version control. I do not think there is any way to avoid flagging this information about a particular machine in version control.

If you have chosen a certificate for subscription, there is one option "Automatic profile selection". I have not tested it on individual machines yet, but it looks like it will automatically select the correct certificate for the correct machine. But if it is not, then you will have to manually select certi each time.

As my team does this, we have different macs for developers, and we do all of our signature stuff from one specific mac.

+1
source

You can export certificates from a keychain in .p12 format and install them on another system. If you install the .cer file on another machine, this will not work! try exporting them and installing them on another system.

0
source

All Articles