博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ios解决本地私有库出现的bug
阅读量:6899 次
发布时间:2019-06-27

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

当我在终端输入

localhost:~ zmit$ cd /Users/zmit/Desktop/cocoapods本地私有库的使用/本地私有库优化方案2/localLib 

localhost:localLib zmit$ pod lib create XMGFMBase

显示出如下错误:

Cloning `https://github.com/CocoaPods/pod-template.git` into `XMGFMBase`.

Configuring XMGFMBase template.

/Users/zmit/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- colored2 (LoadError)

from /Users/zmit/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/zmit/Desktop/cocoapods本地私有库的使用/本地私有库优化方案2/localLib/XMGFMBase/setup/TemplateConfigurator.rb:2:in `<top (required)>'

from ./configure:5:in `require_relative'

from ./configure:5:in `block in <main>'

from ./configure:4:in `each'

from ./configure:4:in `<main>'

To learn more about the template see `https://github.com/CocoaPods/pod-template.git`.

To learn more about creating a new pod, see `http://guides.cocoapods.org/making/making-a-cocoapod`.

解决方法:

第一步:

localhost:localLib zmit$ sudo gem install colored2

Password:

第二步:

localhost:localLib zmit$ sudo gem update --system 

又报错了

错误入下:

Updating rubygems-update

ERROR:  While executing gem ... (OpenSSL::SSL::SSLError)

    hostname "gems.ruby-china.org" does not match the server certificate

localhost:localLib zmit$ gem install bundle

Fetching: bundler-1.16.0.gem (100%)

Successfully installed bundler-1.16.0

Fetching: bundle-0.0.1.gem (100%)

Successfully installed bundle-0.0.1

Parsing documentation for bundler-1.16.0

Installing ri documentation for bundler-1.16.0

Parsing documentation for bundle-0.0.1

Installing ri documentation for bundle-0.0.1

Done installing documentation for bundler, bundle after 15 seconds

2 gems installed

 然后再接着输入:

localhost:localLib zmit$  rvm -v

localhost:localLib zmit$ rvm get head

终于出现了这个:

Downloading https://get.rvm.io

No GPG software exists to validate rvm-installer, skipping.

Downloading https://github.com/rvm/rvm/archive/master.tar.gz

Upgrading the RVM installation in /Users/zmit/.rvm/

    RVM PATH line found in /Users/zmit/.mkshrc /Users/zmit/.profile /Users/zmit/.bashrc /Users/zmit/.zshrc.

    RVM sourcing line found in /Users/zmit/.profile /Users/zmit/.bash_profile /Users/zmit/.zlogin.

Upgrade of RVM in /Users/zmit/.rvm/ is complete.

 Upgrade Notes:

   * RVM 1.30 simplifies behavior of 'rvm wrapper' subcommand

RVM reloaded!

 

这样就行了

 

转载于:https://www.cnblogs.com/huiyi-520/p/7778620.html

你可能感兴趣的文章
我的友情链接
查看>>
程序状态字(PSW)的动画说明,
查看>>
shell学习之expect命令
查看>>
Python中的特殊变量名
查看>>
20个你可能不知道的 Linux 网络工具
查看>>
我的友情链接
查看>>
微信小程序把玩(十三)progress组件
查看>>
微信开发六(配置js-SDK,步骤1)
查看>>
test
查看>>
nginx的反向代理搭建配置
查看>>
localhost 127.0.0.1和本机ip三者的区别
查看>>
我的友情链接
查看>>
高老师<架构&设计思考>短句集(3)
查看>>
完美立方
查看>>
如何去除重复数据?
查看>>
Debian9 安装MariaDb10.1 空密码无法登陆
查看>>
我的友情链接
查看>>
Java-J2SE基础复习
查看>>
如何使用netfilter/iptables构建防火墙
查看>>
JAVA如何使用自定义异常
查看>>