LoginSignup
71
52

More than 5 years have passed since last update.

pod installとpod updateの違いについて

Last updated at Posted at 2016-06-13

以下コマンドの違いがあまりわかってなかったので調べました。

  • pod install
  • pod update

ヘルプで確認

$ pod --help

(実行結果より一部抜粋)
+ install       Install project dependencies according to versions from a Podfile.lock
+ update        Update outdated project dependencies and create new Podfile.lock
  • installはPodfile.lockをみてインストールする
  • updateはPodfile.lockをみずにインストールする、さらにPodfile.lockを更新する

Podfile.lockとは

  • install時にPodfile.lockがない場合、生成される
  • pod install時の各ライブラリのバージョンが記載されている
(Podfile.lockより一部抜粋)
PODS:
  - ChameleonFramework (2.1.0):
    - ChameleonFramework/Default (= 2.1.0)
  - ChameleonFramework/Default (2.1.0)
  - SVProgressHUD (2.0.3)
  • ライブラリのバージョンを保持しておくことで、共同開発などでライブラリのバージョンの差異を防ぐ

参考

71
52
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
71
52