LoginSignup
14
12

More than 5 years have passed since last update.

$ pod install より$ pod install --no-repo-updateがいいよね?

Posted at

$ pod install の動作について

$ pod installすると
cocoapodsのmasterにあるversion別ライブラリから今のディレクトリのPodfileに書かれてるversionのライブラリをコピーする

$ pod install --verbose

このオプションをつけると実際行ってることがわかるんだけど、こんなかんじになって、

/usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
Cloning into 'master'...

installするたびにmasterを書き換えるためにSpecs.gitをcloneしてるんです。
どうやらSpecs.gitをもってくるのが長くて20分とかくらい時間かかる時があるとのこと。
だからとても重い。
そんな最新のやつじゃなきゃダメでもなければわざわざ持ってこないくていいよって感じ。
てかまず今のversionで試して、ダメならcloneという流れがいい。
なのでこのコマンドを日頃から使うことにします

$ pod install --no-repo-update
14
12
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
14
12