• cocoapods 错误处理


    error: RPC failed; curl 56 SSLRead() return error -36

    [!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master
    Cloning into 'master'...
    error: RPC failed; curl 56 SSLRead() return error -36
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

    解决方案: 
    打开终端命令行,输入以下命令:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

    注意:1."/Applications/Xcode.app/Contents/Developer"此路径是当前默认XCode的所在位置,如果安装了多个XCode需要多加注意

       2.做了以上操作之后还会报错,将XCode删除,重新安装

    PS:获取当前XCode路径,在终端中输入

    $ xcode-select --print-path
    ================================================================================================================================================



    ================================================================================================================================================

    error: RPC failed; curl 56 SSLRead() return error -9806

    解决方案: 

    打开终端命令行,输入以下命令:

    $ git config --global http.postBuffer 524288000
    $ pod setup
    ================================================================================================================================================



    ================================================================================================================================================

    ERROR:  While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

    解决方案:

    打开终端输入以下命令

    $ sudo nvram boot-args="rootless=0"
    $ sudo reboot
    $ sudo gem install cocoapods -V
  • 相关阅读:
    Java类加载机制
    Java内存模型
    遍历集合的常见方式,排序,用lambda表示是怎样的
    包和访问权限修饰符,.单例设计模式,.Object类常用方法,.内部类
    接口
    继承
    面向对象的四大特征 封装 继承 多态 抽象
    面向对象
    二维数组及Arrays工具类
    数组(冒泡,选择,排序)
  • 原文地址:https://www.cnblogs.com/czq1989/p/6593645.html
Copyright © 2020-2023  润新知