博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cocoa pods Installation
阅读量:6200 次
发布时间:2019-06-21

本文共 1756 字,大约阅读时间需要 5 分钟。

参考:

CocoaPods is built with Ruby and it will be installable with the default Ruby available on OS X. You can use a Ruby Version manager, however we recommend that you use the standard Ruby available on OS X unless you know what you're doing.

Using the default Ruby install will require you to use sudo when installing gems. (This is only an issue for the duration of the gem installation, though.)

$ sudo gem install cocoapods

If you encounter any problems during installation, please visit this guide.

<Sudo-less installation

If you do not want to grant RubyGems admin privileges for this process, you can tell RubyGems to install into your user directory by passing either the --user-install flag to gem install or by configuring the RubyGems environment. The latter is in our opinion the best solution. To do this, create or edit the .profile file in your home directory and add or amend it to include these lines:

export GEM_HOME=$HOME/.gem

export PATH=$GEM_HOME/bin:$PATH
Note that if you choose to use the --user-install option, you will still have to configure your .profile file to set the PATH or use the command prepended by the full path. You can find out where a gem is installed with gem which cocoapods. E.g.

$ gem install cocoapods --user-install  用sudo方式安装在Mac OSX 10.11上报错

$ gem which cocoapods
/Users/eloy/.gem/ruby/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods.rb
$ /Users/eloy/.gem/ruby/2.0.0/bin/pod install
<Updating CocoaPods

To update CocoaPods you simply install the gem again

$ [sudo] gem install cocoapods
Or for a pre-release version
$ [sudo] gem install cocoapods --pre    gem install cocoapods --user-install --pre

升级后在 Link Binary With Libraries 中libPods.a变为了libPods-TargetName.a,需要移除。

转载于:https://www.cnblogs.com/qike/p/5466461.html

你可能感兴趣的文章
Redis cluster启动警告问题的解决
查看>>
Python网络编程
查看>>
12c 数据库字符集AL32UTF8改为ZHS16GBK
查看>>
使用LVS或者阿里云的SLB后如何获取访客真实的IP地址
查看>>
【坐在马桶上看算法】算法9:开启“树”之旅
查看>>
懒惰愚蠢是不是暴力
查看>>
CUDA实践指南(二十三)
查看>>
MySQL varchar(N)
查看>>
lepus3.8 安装以及慢查询设置 基于mysql5.7 改进版
查看>>
配置tomcat监听80端口、配置tomcat虚拟机、tomcat日志
查看>>
install_apache_tomcat
查看>>
现代汽车CMO使用基于AI的社交智能工具深入了解千禧一代
查看>>
cookie和session的区别
查看>>
Postgresq9.6主从部署
查看>>
linux内核中得到进程全路径
查看>>
highchart demo
查看>>
coreseek,php,mysql全文检索部署(二)
查看>>
Jmeter----跨线程传递cookies值
查看>>
Nginx防盗链、Nginx访问控制、Nginx解析php相关配置、Nginx代理
查看>>
视频、续航与超级计算,APU革新CPU的三把斧
查看>>