LoginSignup
22
22

More than 5 years have passed since last update.

最新のCocoaPodsへのアップロード方法の変更点

Last updated at Posted at 2014-06-11

by mixiappwchr

最近CocoaPodsへライブラリをあげようといつものように,pull reqをだしたら

We have just launched 'Trunk', which is the new way for you to submit your Pods. For more information on this have a read through the post at http://blog.cocoapods.org/CocoaPods-Trunk/ If you have previously had your Pod merged into the master repository, please ensure you claim your Pod http://blog.cocoapods.org/Claim-Your-Pods/

と返信がきて、みてみると、アップロードの方法が変更になったようでした。

確認したところ、今までのやり方は

  • Specレポジトリをfork
  • 自身のライブラリにspecファイルを追加
  • pull reqを送ってとりこんでもらう

だったのですが、最新のcocoapodsではpodコマンドにアップロード機能が追加されていました。

手順は以下のように変更になりました。

  • 初回時は pod trunk registerコマンドで開発者登録をする。
  • pod trunk push でuploadする

と言ったようにコマンドベースでアップロードが完結するようになりました。
大分楽チンになりましたね!

初回登録時

初回の登録は以下の用にコマンドをうちます。

pod trunk register <email> <name>

コマンドをうつと,認証メールが指定したアドレスに届くのでクリックします。

これで完了です。登録されたかは以下のコマンドをうつと

 pod trunk me
  - Name:     <name>
  - Email:    <email>
  - Since:    May 20th, 07:04
  - Sessions: 
  - June 11th, 23:59 - October 18th, 00:09. IP: xxx.xxx.xxx.xxx

のような表示が出ます.

アップロード

アップロードは簡単です。

pod trunk push xxx.podspec

これで自動的にlintも走って問題なければ登録完了です。

以前よりサクサクuploadできるので皆さんもライブラリをガンガン開発してください!

22
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
22