协同设计失败,返回 CSSM_SignData:8001094A [英] codesign failed with CSSM_SignData returned: 8001094A

查看:47
本文介绍了协同设计失败,返回 CSSM_SignData:8001094A的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常烦人的协同设计问题:我有 2 台 Mac 机器(M1、M2)和 2 个开发人员证书(C1、C2).虽然钥匙串在 M1 和 M2 上看起来很相似,但我通过 codesign 得到了以下结果:

I have a very annoying codesign problem: I have 2 Mac machines (M1, M2) and 2 Developer Certificates (C1, C2). Although keychains look similar on M1 and M2, I have the following results with codesign:

  • 代码设计(M1,C1)好
  • codesign(M1, C2) nok
  • codesign(M2, C1) nok
  • 代码设计(M2,C2)好

因此,当我使用 C1 在 M1 上成功构建我的项目时,我无法将存储库转移到 M2 并使用 C1 再次构建,我必须更改为 C2 才能成功.出现错误时,代码协同设计返回错误消息CSSM_SignData 返回:8001094A",后跟未知错误 -2070=fffff7ea".

So when I build successfully my project on M1 with C1, I cannot transfer the repository to M2 and build again with C1, I must change to C2 to be successful. On error codesign returns error message 'CSSM_SignData returned: 8001094A' followed by 'unknown error -2070=fffff7ea'.

推荐答案

要在机器上签署您的应用程序,必须仅从该机器请求证书.所以你不能在 M2 上用 C1 构建,反之亦然.

To sign your app on a machine, the certificate must have been requested from that machine only. So you can not build with C1 on M2 and vice versa.

不幸的是,此信息进入 project.pbxproj,这是至关重要的,必须由版本控制维护.我认为没有任何方法可以避免将这种特定于机器的信息放入版本控制中.

Unfortunately, this info goes into project.pbxproj, which is critical and must be maintained by version control. I don't think there is any way to avoid putting this kind of machine specific info in version control.

不过,当您选择要签名的证书时,有一个自动配置文件选择器"选项.我还没有在单独的机器上测试过它,但听起来它会自动为正确的机器选择正确的证书.但如果不是这样,那么您每次都必须手动选择证书.

There is one option of "Automatic Profile Selector" when you pick the certificate to sign, though. I have not yet tested it on separate machines, but it sounds like it will pick the right certificate for right machine automatically. But if thats not the case, then you will have to manually select the certi each time.

我的团队这样做的方式是 - 我们为开发人员提供不同的 mac,我们从一台特定的 mac 上完成所有签名工作.

The way my team does this is- we have different macs for developers and we do all our signing stuff from one particular mac.

这篇关于协同设计失败,返回 CSSM_SignData:8001094A的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆