0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

#26 CocoaPodsとPodsライブラリの更新の1例

Last updated at Posted at 2020-10-04

はじめに

私の備忘録程度の出来です.
ご了承くださいませ.

環境

Xcode:12.0.1
Swift:5.3
2020/10

part1

以降の操作は全てターミナルで行う.

現在のバージョンの確認

pod --version

part2

cocoaPodsの更新

sudo gem update cocoapods

※うまくcocoaPodsの更新できない場合,一度アンインストールし,再度インストール.

sudo gem uninstall cocoapods
sudo gem install cocoapods -n /usr/local/bin

part3

cocoaPodsの更新が終わったら,以下のコマンドを入力.

pod setup

※古いバージョンのcocoaPodsが壊れている場合,古いバージョンのcocoaPodsを削除.

sudo gem clean cocoapods

part4

以降の操作はpodファイルのあるディレクトリで行う.

cocoaPodsでインストールしたライブラリのバージョンの確認方法.
インストールしたライブラリが現在どのバージョンなのか,また新しいバージョンが出ているのかを調べる時に便利です.

pod outdated

コマンドを打った時の見方.

インストールされているライブラリのバージョン > 現設定でインストールが可能なバージョン (ライブラリの最新バージョン)

赤:アップデートできないライブラリ
黄:現状使われていないライブラリ
緑:アップデート可能ライブラリ

part4

Podsを更新

 pod update

※Podsディレクトリを削除する場合.

sudo rm -fr Pods/
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?