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

IosObjective CSwiftFrameworksCocoapods

Ios Problem Overview


When trying to push an update to my cocoapod framework to the repo with pod trunk push as mentioned in the title, I get the following error:

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

I've updated the cocoapod before, how do I verify my email or session?

Edit: Sometimes I also get the error: [!] You need to register a session first.

Ios Solutions


Solution 1 - Ios

  1. Run the following command in terminal:

    pod trunk register [email protected] 'Your Name'

  2. Click the link in the email that is sent to you.

  3. Run your pod trunk push command in terminal again

Solution 2 - Ios

This failed me just now, looks like there is an additional requirement to perform the registration as outlined here.

  1. From terminal run: pod trunk register [email protected] 'MyName'
  2. Click on the link for the email sent to your address
  3. Run pod trunk push again

To highlight, the difference from Justin's answer was to include the name value. It would not allow me to register without it.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJustin VallelyView Question on Stackoverflow
Solution 1 - IosJustin VallelyView Answer on Stackoverflow
Solution 2 - IosCodeBenderView Answer on Stackoverflow