Error when trying to run `pod trunk push [cocoapod].podspec`
IosObjective CSwiftFrameworksCocoapodsIos 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
-
Run the following command in terminal:
pod trunk register [email protected] 'Your Name'
-
Click the link in the email that is sent to you.
-
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.
- From terminal run:
pod trunk register [email protected] 'MyName'
- Click on the link for the email sent to your address
- 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.