zoukankan      html  css  js  c++  java
  • cocoapod

    更新代码:

    sudo gem install -n /usr/local/bin cocoapods --pre

    ex:

    The dependency `` is not used in any concrete target
    The dependency `AFNetworking ` is not used in any concrete target
    • CocoaPods再遇困难,前几天电脑重装了系统,所有的开发工具就都装了最新的,当我用CocoaPods的时候,出了一个提示,大概就是我的版本不是 last version,然后给你提示了一个命令,直接复制即可,就是下面这个:
    sudo gem install cocoapods --pre

    安装cocoapods的预览版本,就会更新下来新的1.0.0.beta.2版本,如下所示:

    Successfully installed cocoapods-1.0.0.beta.2
    Parsing documentation for cocoapods-1.0.0.beta.2

    很高兴啊,更新了新的版本,然而pod install就出错了,悲了个剧!出错如下:

    Updating local specs repositories
    Analyzing dependencies
    [!] The dependency `FMDB (~> 2.3)` is not used in any concrete target.
    The dependency `SDWebImage (~> 3.6)` is not used in any concrete target.
    The dependency `AFNetworking (~> 2.3.0)` is not used in any concrete target.
    The dependency `DACircularProgress (~> 2.2.0)` is not used in any concrete target.
    The dependency `MBProgressHUD (~> 0.8)` is not used in any concrete target.
    The dependency `PSTCollectionView (~> 1.2.1)` is not used in any concrete target.
    The dependency `HPGrowingTextView (~> 1.1)` is not used in any concrete target.
    The dependency `ProtocolBuffers (= 1.9.3)` is not used in any concrete target.
    The dependency `leveldb-library (~> 1.18.1)` is not used in any concrete target.
    The dependency `SCLAlertView-Objective-C (~> 0.7.5)` is not used in any concrete target.
    The dependency `MWPhotoBrowser (~> 1.4.1)` is not used in any concrete target.
    The dependency `MMMarkdown (~> 0.5)` is not used in any concrete target.
    The dependency `MJExtension (~> 2.5.16)` is not used in any concrete target.
    The dependency `MJRefresh (~> 2.4.12)` is not used in any concrete target.
    The dependency `Masonry (~> 0.6.3)` is not used in any concrete target.

    我用的三方库比较多,挺长的,出这个错是告诉我们我们所用的库没有指定target,它不知道用在哪里,所以就给报错了,然后我去了cocoapods的官网看了下,cocoapods官网地址


    官网是这样给推荐的: 
    在创建Podfile的时候,用这种格式使用,

    platform :ios, '8.0'
    use_frameworks!
    
    target 'MyApp' do
      pod 'AFNetworking', '~> 2.6'
      pod 'ORStackView', '~> 3.0'
      pod 'SwiftyJSON', '~> 2.3'
    end
    • 里面的 MyApp 记得替换为自己攻城里面的target。这样就基本OK了,执行pod install / pod update 就都可以了。

    有疑问的给我评论或者邮件,每天都会看一下 kamy_shi@163.com

    ------------割--------------割----------割--------

    Ruby China 的 RubyGems 镜像上线(2016.10.24之前的淘宝链接已经失效,最新镜像在腾讯云,详情参照此链接)

    原文如下:

    几年前,由我起头,我们搭建了 ruby.taobao.org 为国内开发者解决 Gem 安装的问题,现在应该国内绝大多数,甚至所有(国内服务器,国内网络)的 Ruby 开发者企业,应该都在用它。

    但最近越来越发现之前 ruby.taobao.org 很难同步了,原因有很多,之前的实现方式过于复杂,服务器在国内,同步困难,阿里的网络安全要求维护服务器得是公司员工.... 各种限制导致我们在维护的时候困难重重,尤其是当 @fsword @qhwa 离职以后,根本无法再继续维护了。

    为了有一个可持续发展未来,我们考虑由 Ruby China 来负责这个事情,这样可以像现在 Ruby China 社区,RubyConf China 一样,由社区的很多参与者来共同维护。

    这件事情我们已经考虑了一年了,之前一直没有找到一个好的方式来解决,以及一些其他因素,比如资金的问题。


    这周,我们终于找到了解决方案,也找到了赞助商:腾讯云

    https://www.qcloud.com

    腾讯云慷慨的给我们赞助了第一期 30000 元用于服务器以及 CDN 的开销。

    整个 gems.ruby-china.org 的架构:

    2016-05-18 Updated: Gems 存储放到了 UpYun 上面,通过 UpYun 的 CDN 来解决,同时配合 UpYun 的镜像存储功能,减少回源到国外的次数。
    过程: https://ruby-china.org/topics/29978

                                    [gems.ruby-china.org] [cdn.gems.ruby-china.org]
                                                         |
                                         {Load Balance us.gems.ruby-china.org}
                                                         |
                                       [us0.gems.ruby-china.org]  ... us1 .. us2
                                                         |
                                                      [Nginx]
                                                         |
                    ---------------------------------------------------------------------------------------
                    |                                    |                          |                     |
        {*.4.8, *.4.8.gz}                          {/gems, /quick}                 {/}                 {/api}
                   |                                     |                          |                     |
      [rubygems.global.ssl.fastly.net]      <gems-ruby-china.b0.upaiyun.com>   [app server]         [rubygems.org]
                                                         |
                                                    [UpYun CDN]
                                                         |
                                               ----------------------
                                               Found             Not Found
                                                |                   |
                                              [200]       [rubygems.global.ssl.fastly.net]
                                                                    |
                                                                  [200] ------------> [UpYun Mirror Store]

    新的方案的特点

    • 实时的,不再有同步耗时的问题;
    • 全球 400+ CDN 节点(据腾讯官方所说 ~~)为 Gem 下载加速;
    • 更加简单有效的架构,稳定性更高;
    • 背后有两台国外服务器,确保稳定性,确保 CDN 汇源能获取到数据;

    使用方式

    https://gems.ruby-china.org/

    在那边的页面有介绍了,和之前 ruby.taobao.org 的方式也是一样的。

    项目源代码

    https://github.com/ruby-china/rubygems-mirror

    关于 SSL

    我们稍后会跟进,目前腾讯云 CDN 上面上传 SSL 证书信息在我这里有点问题。
    SSL 已上线!

    原文链接 

  • 相关阅读:
    自我介绍
    币值转换
    打印沙漏
    对我影响最大的三位老师

    pta
    pta-3
    学习计划
    对我有影响的三个老师
    介绍自己
  • 原文地址:https://www.cnblogs.com/On1Key/p/5512252.html
Copyright © 2011-2022 走看看