安装pods 遇到的坑

1.  ERROR:  While executing gem ... (Errno::EPERM)

    Operation not permitted - /usr/bin/pod

 

苹果系统升级 OS X EL Capitan 后会出现的插件错误,将 安装 CocoaPods 的 sudo gem install cocoapods

改为 sudo gem install -n /usr/local/bin cocoapods



 

 第二个大坑     这个问题能折磨死你 

[!] Could not automatically select an Xcode workspace. Specify one in your Podfile like so:

workspace 'path/to/Workspace.xcworkspace'

 

在你的podfile  添加 以下内容 试一下     顺序不要改  就复制粘贴 过去 就行      把" "里面的你的项目名称  改成你自己的项目名称

 

target "你的项目名称" do

platform:ios,'7.0'

end

 

或许  这里面  有一点为什么要这样写的答案

 

3.

[!] /usr/bin/git fetch --unshallow

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

 

git 'https://github.com/CocoaPods/Specs.git'

 

posted @ 2016-05-27 17:43  iOS张文权  阅读(1432)  评论(0编辑  收藏  举报