Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods Trunk cannot push update: "You need to register a session first."

Tags:

cocoapods

I am attempting to publish my library using the new CocoaPods Trunk service.

pod trunk push your-library.podspec 

This gives the error:

[!] You need to register a session first.

How does one register a session?

like image 796
pkamb Avatar asked May 27 '14 23:05

pkamb


People also ask

What is the use of trunk in CocoaPods?

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. You can read about Trunk's history and development on the blog, and about private pods for yourself or your team.

How do I publish new libraries to CocoaPods?

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. You can read about Trunk's history and development on the blog, and about private pods for yourself or your team.

How do I deploy my podspec to trunk?

Trunk accounts do not have passwords, only per-computer session tokens. pod trunk push [NAME.podspec] will deploy your Podspec to Trunk and make it publicly available. You can also deploy Podspecs to your own private specs repo with pod repo push REPO [NAME.podspec].


1 Answers

Register a CocoaPods session in Terminal like so:

pod trunk register [email protected] 'Your Name' --description='macbook pro'

You will then be emailed at the provided address, click a link, and confirm your session.

http://guides.cocoapods.org/making/getting-setup-with-trunk.html

like image 66
pkamb Avatar answered Sep 21 '22 17:09

pkamb