LoginSignup
4
2

More than 5 years have passed since last update.

CocoaPods, Carthage対応の自作ライブラリをアップデートする方法

Last updated at Posted at 2018-03-07

はじめに

ライブラリの作り方はこちらの記事が秀逸だったり、CocoaPods, Carthage対応の記事もあったりしたのに、リリース後それらを更新する方法がまとまってなかったので書きました。

Carthage

自作ライブラリのディレクトリで

carthage build --no-skip-current

リモートレポジトリにpush後リリースタグを付ける

CocoaPods

.podspecファイルのバージョン部分を変更

  s.version      = "2.0.0"

↑の変更をコミット&プッシュしマウス。

Carthage対応でリリースタグを付けていないのならgit tagでバージョン名のタグを付けます。

git tag 2.0.0
git push --tags

同じくプッシュします。

最後に

pod trunk push

で反映させて完了です。

参考

Carthage関連
https://qiita.com/morizotter/items/2e45f8f94c1010ebd69f
CocoaPods関連
https://qiita.com/taji-taji/items/e23373f9b8124de728a2#1-%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E4%BD%9C%E6%88%90
http://www.cl9.info/entry/2016/06/20/230000

4
2
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
4
2