Xcode 签名有效,但 fastlane 无效

Xcode signing works but fastlane does not

我已经成功构建了一个 cordova 到 ios 应用程序并使用证书对其进行了签名。在我的机器上,证书是 `9********。当我尝试使用 xcode 进行构建时,它可以正常运行。当我 运行 fastlane beta 和

build_app(
    # scheme: "YourScheme",
    export_method: "ad-hoc",
    export_xcargs: "-allowProvisioningUpdates"
  )

我收到构建错误

[15:10:52]: Certificate X******** (iOS Distribution) can't be found on your local computer
[15:10:52]: Certificate 8******** (iOS Distribution) can't be found on your local computer
[15:10:52]: Certificate C******** (iOS Distribution) can't be found on your local computer

显然,这些证书甚至与我机器上安装的证书不同。为什么 fastlane 在我的机器上找不到它,为什么它要找这些?

我已经弄明白了(有点)。诀窍是在开发人员控制台中撤销其中一个证书,然后允许 fastlane 在我的机器上创建一个新证书。