您的位置:首页 > 其它

安装pods 遇到的坑

2016-05-27 17:43 232 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: