一、
由于安裝了多個(gè)版本的Xcode械拍,所以在使用Cocoapods的時(shí)候出現(xiàn)了下面的問題:
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master-1`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
解決辦法:
使用:sudo xcode-select -switch 命令突勇,然后加上Xcode的路徑装盯。
添加路徑.gif
二、
如果在 pod install或pod update之后甲馋,出現(xiàn)下面錯(cuò)誤:
The dependency `projectName` is not used in any concrete target.
可以在podfile文件中加上下面兩句話:
target "projectName" do
pod "YOUR_POD"
end