签名分发 iOS 应用程序 "unable to build chain to self-signed root for signer" 时出错

Error signing Distribution iOS app "unable to build chain to self-signed root for signer"

我生成了我的分发证书,但是当我将应用程序发送到 codenameone 来构建它时,在日志中抛出了这个错误。


Signing Identity:     "iPhone Distribution: XXXXXXXX"
Provisioning Profile: "IOS_DISTRIBUTION_Profile"
                      (647b6c28-7bd7-424f-bf1b-5e8081d7f9b8)

    /usr/bin/codesign --force --sign 35998CCB7538F0F2EB73795C4F444C1DD2EC4986 --entitlements /Volumes/MacintoshHD2/temp/build1022640200136408778xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/App/IntermediateBuildFilesPath/App.build/Release-iphoneos/App.build/App.app.xcent /Volumes/MacintoshHD2/temp/build1022640200136408778xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app

Warning: unable to build chain to self-signed root for signer "iPhone Distribution: XXXXXX"

/Volumes/MacintoshHD2/temp/build1022640200136408778xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app: errSecInternalComponent
Command CodeSign failed with a nonzero exit code

此致

自动回复:

问题出在编译机证书上,请阅读:https://developer.apple.com/support/expiration/

您必须在编译此证书的机器上安装:https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer

在 CodenameOne 上,当 codenameOne 团队更新证书时再次工作。

此致