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。一起探讨一起进步。。。。 

  • 相关阅读:
    明暗文切换(密码输入框)遇到的坑
    iOS11适配tableView顶部空白
    macOS升级到high Sierra后, Cocoapods不能使用解决办法
    Xcode插件失效以后的处理方法
    iOS正确使用const,static,extern
    centos7安装magento随记 这就是个坑,果断放弃
    关于迅雷试用短租日租会员的一些渠道收集
    json中含有Unicode的处理办法 C#
    c#中奖算法的实现
    2016年最新mac下vscode配置golang开发环境支持debug
  • 原文地址:https://www.cnblogs.com/lidaojian/p/4920642.html
Copyright © 2011-2022 走看看