尝试 运行 `pod t运行k push [cocoapod].podspec` 时出错

Error when trying to run `pod trunk push [cocoapod].podspec`

当尝试将我的 cocoapod 框架的更新推送到标题中提到的 pod trunk push 的 repo 时,我收到以下错误:

[!] Authentication token is invalid or unverified. Either verify it with the email that was sent or register a new session.

之前更新过cocoapod,如何验证邮箱或者session?

编辑:有时我也会收到错误:[!] You need to register a session first.

  1. 运行 在终端中输入以下命令:

    pod trunk register yourEmail@example.com 'Your Name'

  2. 单击发送给您的电子邮件中的 link。

  3. 运行 终端中的 pod trunk push 命令再次出现

这让我刚才失败了,看起来还有一个额外的要求来执行注册 outlined here

  1. 来自终端 运行:pod trunk register myemail@domain.com 'MyName'
  2. 单击 link 以将电子邮件发送到您的地址
  3. 运行 pod trunk push 再一次

要强调的是,与 Justin 的回答的不同之处在于包含 名称值。没有它我将无法注册。