1.问题
CocoaPods did not set the base configuration of your project because because your project already has a custom config set
解决:
找到project下 info下的configuration 把下面两个都改成none
去目录下重新pod install
然后clean一下 就OK了
如果还有问题 关掉当前工程 到DerivedData下清空缓存 重复下上面步骤
2.问题
CocoaPods was not able to update the master
repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
解决:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ pod install 搞定
3.问题
这属于之前pods残余的东西
解决:
如下图所示把pods 和framework下的红色内容删除就可以了
附带参考内容
先删除全局的缓存:
$ sudo rm -fr ~/Library/Caches/CocoaPods/
$ sudo rm -fr ~/.cocoapods/repos/master/
还不行的话就把清空当前 Pods 目录:
$ sudo rm -fr Pods/
// 再执行
$ sudo gem install cocoapods
$ pod setup 看看还有没有报错
4. ERROR: While executing gem ... (Errno::EPERM)
当天解决时用:
自定义GEM_HOME
命令行操作:
$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Sofware/ruby/bin
$ pod --version
0.39.0
第二天 pod install时又报错 -bash: pod: command not found
执行 gem install cocoa pods
报错:ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory
执行 sudo gem install cocoa pods
报错:ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
执行:sudo gem install -n /usr/local/bin cocoapods OK解决
为什么执行这句的原因