设为首页 加入收藏

TOP

安装pods 遇到的坑
2017-10-13 10:28:46 】 浏览:4510
Tags:安装 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

 

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇【原】iOS学习45之多媒体操作 下一篇CocoaPods 添加第三方库报错

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目