Codemagic 未签署我的应用程序以进行分发

Posted

技术标签:

【中文标题】Codemagic 未签署我的应用程序以进行分发【英文标题】:Codemagic not signing my app for distribution 【发布时间】:2021-11-16 04:30:02 【问题描述】:

我正在尝试分发一个用颤振制作的应用程序,我尝试过使用自动签名和手动签名,但都失败了。

这是手动签到的日志:

== Use manually uploaded ios code signing files ==

Saved Provisioning Profile distribuicao.mobileprovision to '/Users/builder/Library/MobileDevice/Provisioning Profiles/tmpgnz196ow.mobileprovision'
Saved Code Signing Certificate ios_distribution.p12 to '/Users/builder/Library/MobileDevice/Certificates/tmp6no2nnan.p12'
> keychain initialize
Initialize new keychain to store code signing certificates at /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db
Create keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db
Set keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db timeout to "no timeout"
Set keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db to system default keychain
Unlock keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db

> keychain add-certificates --certificate /Users/builder/Library/MobileDevice/Certificates/tmp6no2nnan.p12 --certificate-password @env:CERTIFICATE_PASSWORD
Add certificates to keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db
Searching for files matching /Users/builder/Library/MobileDevice/Certificates/tmp6no2nnan.p12
Add certificate /Users/builder/Library/MobileDevice/Certificates/tmp6no2nnan.p12 to keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db
security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)
Unable to add certificate /Users/builder/Library/MobileDevice/Certificates/tmp6no2nnan.p12 to keychain /Users/builder/Library/codemagic-cli-tools/keychains/22-09-21_lxer72eq.keychain-db


Build failed :|
Failed to add certificate to keychain

【问题讨论】:

【参考方案1】:

正如错误消息所说,我认为 CERTIFICATE_PASSWORD 变量的密码不正确

security: SecKeychainItemImport: MAC verification failed during PKCS12 import (wrong password?)

【讨论】:

以上是关于Codemagic 未签署我的应用程序以进行分发的主要内容,如果未能解决你的问题,请参考以下文章

Fabric 插件:存档打包错误:-6 重新签署应用程序以进行分发时出错

无法签署 Mac 安装程序以在 Mac 应用商店之外分发

sh Travis CI:检查标签,生成发行说明,签署二进制文件并上传到Tryouts以进行发布分发

应用程序未通过协同设计验证。签名无效,或未使用 iPhone 分发证书签名。我该怎么办?

Ad-Hoc 分布式应用程序未安装在设备上

Codemagic 静态页面:跳过发布到 my_app.codemagic.app:未生成静态内容