pod install
報錯:
# [cocoapods問題Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`](https://my.oschina.net/u/2532095/blog/753609)
終端中: pod install
后出現(xiàn):
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 add master https://github.com/CocoaPods/Specs.git
仍然不行,是因為安裝多個xcode
導(dǎo)致路徑改變
解決: sudo xcode-select -switch
后面當(dāng)前xcode
路徑
確保~/.cocoapods/repos
下面已經(jīng)有了你的repo
获讳,繞過檢查:
pod update --no-repo-update
pod install --verbose --no-repo-update
即可成功儡炼。