zoukankan      html  css  js  c++  java
  • Xcode7 Cocoapods 安装或更新出现错误

    好长时间没有玩过CocoaPods了,今天在执行

    pod install --verbose --no-repo-update

    的时候出现了错误如下

    [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-8227/IDEFoundation/Initialization/IDEInitialization.m:590
    Details:  Assertion failed: _initializationCompletedSuccessfully
    Function: BOOL IDEIsInitializedForUserInteraction()
    Thread:   <NSThread: 0x7ff01d69f160>{number = 1, name = main}
    Hints: None
    Backtrace:
      0  0x00000001011a6a5c -[DVTAssertionHandler handleFailureInFunction:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
      1  0x00000001011a61e9 _DVTAssertionHandler (in DVTFoundation)
      2  0x00000001011a6455 _DVTAssertionFailureHandler (in DVTFoundation)
      3  0x00000001011a63b7 _DVTAssertionFailureHandler (in DVTFoundation)
      4  0x0000000102642f5c IDEIsInitializedForUserInteraction (in IDEFoundation)
      5  0x000000010529aeb9 +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
      6  0x000000010529ca3e +[PBXProject projectWithFile:errorHandler:] (in DevToolsCore)
      7  0x00007fff8a9dbf44 ffi_call_unix64 (in libffi.dylib)
    Abort trap: 6

    在网上查询了一下解决方案:把cocoapods 升级到最新版本就行了。

    更新的操作为

    sudo gem install cocoapods

    另外执行一下下面的命令

    $ gem sources -l

    其结果若为:

    $ gem sources -l
    *** CURRENT SOURCES ***
    
    http://ruby.taobao.org/

    这说明之前我替换过,若没有更改过gem source应该结果为:

    $ gem sources -l
    *** CURRENT SOURCES ***
    
    https://rubygems.org/

    或者

    $ gem sources -l
    *** CURRENT SOURCES ***
    
    http://rubygems.org/

    但是现在淘宝ruby的源现在改成https的了

    更换操作如下

    /// 移除操作(移除当前你查询到的gem source)
    $ gem sources --remove http://ruby.taobao.org/
    /// 执行的结果
    http://ruby.taobao.org/ removed from sources 
    
    /// 添加的操作
    $ gem sources -a https://ruby.taobao.org/
    /// 执行的结果
    https://ruby.taobao.org/ added to sources
    
    /// 再查询
    $ gem sources -l
    /// 结果已经发生变化
    *** CURRENT SOURCES ***
    
    https://ruby.taobao.org/

    修改完之后就可以正常的使用啦。

    若有疑问请加本人QQ:610774281。一起探讨一起进步。。。。 

  • 相关阅读:
    Web开发人员必备工具-Emmet (Zen Coding)
    Zerver是一个C#开发的Nginx+PHP+Mysql+memcached+redis绿色集成开发环境
    jquery 插件站
    数据挖掘项目之---通过对web日志的挖掘来实现内容推荐系统
    类似wordpress的网站模板
    浅谈 SOAP
    在Livemedia的基础上开发自己的流媒体客户端 V 0.01
    模式识别之分类器knn---c语言实现带训练数据---反余弦匹配
    多项式相乘快速算法原理及相应C代码实现---用到fft
    模式识别之基础---常用分类算法特性归纳
  • 原文地址:https://www.cnblogs.com/lidaojian/p/4920642.html
Copyright © 2011-2022 走看看