• 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
  • 相关阅读:
    sudo命令 sudoers文件
    sscanf函数
    printf格式化输出
    c文件操作
    string和char*
    c去除空格 小写转大写
    主机序和网络序转换
    ulimit用法
    mysql基础(附具体操作代码)
    ES6 class
  • 原文地址:https://www.cnblogs.com/czq1989/p/6593645.html
Copyright © 2020-2023  润新知