cocoapods file not found

  1. Remove the library from the Podfile
  2. Run 'pod install' to remove the library completely
  3. Put the library back into the Podfile
  4. Run 'pod install' again

[!] The `master` repo is not a git repo.

1、进入/users/你的用户名/.cocoapods/,删除master文件夹

2、pod setup

3,sudo xcode-select -switch /Applications/Xcode.app/

 
 

 

 

pod install --verbose --no-repo-update

pod update --verbose --no-repo-update

 cocoapods 更新

sudo gem update --system
sudo gem install cocoapods
pod setup
1
pod --version
 
$ gem sources --remove https://rubygems.org/
//等有反应之后再敲入以下命令
$ gem sources -a http://ruby.taobao.org/
$ gem sources -l

猜你喜欢

转载自1197757723.iteye.com/blog/2170211
今日推荐