Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 924
Justin Vallely Avatar asked Apr 29 '16 06:04

Justin Vallely


People also ask

What is Podspec in CocoaPods?

A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.

What is Podspec file?

A Podspec file, or Spec, describes a version of a Pod library. It includes details about where the source files are located, which files to use, the build settings to apply, dependencies, frameworks used and other general metadata such as the name, version and description for the Pod.

How do I add Podspec to Xcode?

To create a Podspec, navigate to your project file in the Terminal. Run the following command to create the file: touch FantasticView. podspec . Now open the file using an editor.

What is POD trunk?

<CocoaPods Trunk. CocoaPods Trunk is an authentication and CocoaPods API service. To publish new or updated libraries to CocoaPods for public release you will need to be registered with Trunk and have a valid Trunk session on your current device.


1 Answers

  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

like image 78
Justin Vallely Avatar answered Oct 08 '22 20:10

Justin Vallely