安装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
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解决警告ld: warning: directory not found for option ''
- Qt之布局管理器
- Android 探究 LayoutInflater setFactory
- 快速排序的优化
- 自定义UI的时候,通常到CGContextRef进行绘图,以下为详细API的叙述
- 设计模式-策略模式
- iOS获取当前 年月日和星期
- ehcache memcache redis 三大缓存比较
- AppConext 的onCreate方法执行时机
- 操作系统
- 2016/5/27 1000. Hex to decimal
- Spark定制班第15课:Spark Streaming源码解读之No Receivers彻底思考
- Java学习笔记之Java中的包
- fm单体声和立体声的切换
- 今天对二级指针的深入理解
- 转载别人对虚函数的解释,方便以后查找
- Android Studio 查看Shar1码
- 软件工程 寻找小水王
- android Notification 图标动态替换
- centos 服务器配置Java环境