signpass error: Couldn't find an identity for pass.com.xxx.xxxx (continued)

signpass error: Couldn't find an identity for pass.com.xxx.xxxx (continued)

我使用了Apple提供的pass kit demo做了一些修改,买了一台新的MacBook,出现了错误"Couldn't find an identity for pass for pass.com.xxx.xxx"。不可否认,我确实犯了一个愚蠢的错误,没有再次下载证书,以为 iCloud 会为我做这件事。然而,即使这样做并在钥匙串中仔细检查它,它仍然会出现同样的错误。我检查了 passTypeIdentifier 和 teamIdentifier。

signpass error:Couldn't find an identity for pass.com.xxx.xxxx

我求助于 jsonlint 以确保我的 pass.json 文件没有错误。该文件已经过验证,所以我对问题可能是什么一无所知。

Passbook: Couldn't find a passTypeIdentifier in the pass?

当我在终端执行:./signapss -p /myPass 时,它显示:

2016-12-25 13:15:19.219 signpass[4024:556398] {
    "icon.png" = ba47a8021c8d74d2146d7244c8a0566be37df43b;
    "icon@2x.png" = bd5442b4b08aa4dde333ec9ef0269e7fd93140b3;
    "logo.png" = 6d4e7410569679d1ad9ec8040b072d5c6fc46285;
    "logo@2x.png" = a718ffd4e611e404dd3eb701454bcaefdabbe311;
    "pass.json" = bf3b10c7b714fccd38e564e30d2b9342a016615c;
}
2016-12-25 13:15:19.236 signpass[4024:556398] Couldn't find an identity for pass.com.VirtualCard.Virtual-Card

从旧 Mac 设备转移到另一台设备时,还需要转移一个密钥,并且需要联系 Apple 的安全部门。与他们联系后,他们会推荐您参考此 https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/Troubleshooting/Troubleshooting.html#//apple_ref/doc/uid/TP40012582-CH5-SW1 进行导入。您可以沿着这条路线走下去,或者只是从头开始生成另一个证书并使用它,这就是我所做的。