zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    为什么转速环经过pi调节后输出的是电流?
    如何将mysql、php、nginx设置为开机自启动
    rm-rf /*
    2020/4/23-linux中的定时任务详解
    2020/4/20 一键部署服务
    2020/4/20-ansible一键部署nfs
    2020/4/20-backup之rsync
    2020/4/19-linux中/etc/hosts
    2020/4/18-linux中的selinux
    2020/4/18-linux中的iptables
  • 原文地址:https://www.cnblogs.com/czq1989/p/6593645.html
Copyright © 2011-2022 走看看