【Swift】Cocoa Podsでインストール済みのライブラリのバージョンを確認する方法!
この記事からわかること
- Swift/CocoaPodsでインストール済みのライブラリのバージョン確認方法
- outdatedコマンドの使い方
index
[open]
\ アプリをリリースしました /
友達や家族の誕生日をメモ!通知も届く-みんなの誕生日-
posted withアプリーチ
環境
- Xcode:15.0.1
- iOS:17.0
- Swift:5.9
- macOS:Sonoma 14.1
CocoaPodsでインストール済みのライブラリのバージョンを確認する方法
Cocoa PodsでSwiftのプロジェクトにインストール済みで現在使用しているライブラリのバージョンを確認するにはoutdated
コマンドを使用します。
$ pod outdated
実行結果
Updating spec repo `trunk`
Analyzing dependencies
The color indicates what happens when you run `pod update`
<green> - Will be updated to the newest version
<blue> - Will be updated, but not to the newest version because of specified version in Podfile
<red> - Will not be updated because of specified version in Podfile
The following pod updates are available:
- FirebaseAnalytics 10.14.0 -> 10.21.0 (latest version 10.21.0)
- FirebaseCore 10.14.0 -> 10.21.0 (latest version 10.21.0)
- FirebaseCoreInternal 10.14.0 -> 10.21.0 (latest version 10.21.0)
- FirebaseInstallations 10.14.0 -> 10.21.0 (latest version 10.21.0)
- Google-Mobile-Ads-SDK 10.10.0 -> 11.0.1 (latest version 11.0.1)
- GoogleAppMeasurement 10.14.0 -> 10.21.0 (latest version 10.21.0)
- GoogleUtilities 7.11.5 -> (unused) (latest version 7.12.0)
- nanopb 2.30909.0 -> 2.30909.1 (latest version 2.30909.1)
outdatedコマンドとは?
pod outdated
コマンドはプロジェクトにインストール済みのライブラリの最新バージョンを確認するコマンドです。表示される情報には現在インストールされているバージョンもあるので一括で確認したい時に活用することができます。
まだまだ勉強中ですので間違っている点や至らぬ点がありましたら教えていただけると助かります。
ご覧いただきありがとうございました。