• 使用CocoaPods配置iOS百度地图sdk问题记录20191024


    1、在Podfile中加入添加库名

    pod 'BaiduMapKit' #百度地图SDK

    2、安装百度地图

    pod install

    出现问题:

    [!] Error installing BaiduMapKit

    [!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd --template= --single-branch --depth 1 --branch 5.0.0

    Cloning into '/var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd'...

    error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

    fatal: the remote end hung up unexpectedly

    fatal: early EOF

    fatal: index-pack failed

    3、重新安装CocoaPods

    sudo gem install -n /usr/local/bin cocoapods

    出现问题:

    ERROR:  Could not find a valid gem 'cocoapods' (>= 0), here is why:

              Unable to download data from https://gems.ruby-china.org/ - bad response Not Found 404 (https://gems.ruby-china.org/specs.4.8.gz)

    4、查看当前的ruby源并移除,添加新的ruby的软件源

    gem sources -l

    gem sources --remove https://gems.ruby-china.org/

    gem sources --add https://gems.ruby-china.com/

    5、更新gem

    gem update --system

    6、再次安装CocoaPods

    sudo gem install -n /usr/local/bin cocoapods

    pod setup

    7、再次安装百度地图

    pod install

    出现问题:

    [!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: execution expired

    8、清空repo

    pod repo remove master

    9、再次安装百度地图

    pod install

    成功。

    end

  • 相关阅读:
    windows系统下强制杀死某个进程
    onenote快捷键
    sublime封装代码块快捷键、eemet插件安装、Loading PyV8 binary...的解决办法
    google浏览器截长图的方法
    (转)Java基础加强之并发(二)常用的多线程实现方式
    hibernate学习(初识)
    Spring中的事务操作
    JDBC最原始的代码做查询操作
    Spring的JDBC模板
    Spring AOP
  • 原文地址:https://www.cnblogs.com/aitdsr/p/11731456.html
Copyright © 2020-2023  润新知