您好,我遵循此指南进行无/Users/eloy/.gem/ruby/2.0.0/bin/pod install安装,并坚持使用sudo 终端说[!]No Podfile found in the project directory.命令gem which cocoapods正确地显示了cocoapds的路径,所以我猜安装成功了。
推荐用sudo gem install cocoapods安装Cocoapods,但我已经习惯了使用Homebrew,并在其他地方看到人们使用brew install cocoapods安装Cocoapods当我尝试用Homebrew安装它时,我会收到以下警告:
Warning: Treating cocoapods as a formula.For the cask, use homebrew/cask/cocoapods
: Cloning spec repo `trunk` from `https://cdn.cocoapods.orgUnable to add a source with url `https://cdn.cocoapods.org/` named `trunk`.You can try adding it manually in `/Users/flameswitcher