8
7

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 5 years have passed since last update.

pod install で Unable to add a source と言われました。

Posted at

ipaのbuild環境を作成しています。新しく作った環境でpod installがうまくいきませんでした。

pod installが失敗

pod install

Updating local specs repositories
Creating shallow clone of spec repo master from https://github.com/CocoaPods/Specs.git
[!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master.
You can try adding it manually in ~/.cocoapods/repos or via pod repo add.

手動で、pod repoを追加しろとあります。

~/.cocoapods/reposにSpecs.gitをclone

ホームにあるCocoaPodsのディレクトリに、Specs.gitをcloneします。

cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs.git master

再度pod install

# podのディレクトリに戻る、無くても良い
cd -

# pod installを実行
pod install

今度はうまくいきました(☝ ՞ਊ ՞)

参考

8
7
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
8
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?