V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
hengcheng
V2EX  ›  iOS

pod install 报错 :error installing AMapFoundation ,iOS 大佬们来看一下

  •  
  •   hengcheng · 2020-11-03 11:21:17 +08:00 · 1394 次点击
    这是一个创建于 1276 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近接入高德地图,安装 AMapFoundation 的时候,报了如下错误:

    [!] Error installing AMapFoundation
    [!] /usr/bin/curl -f -L -o /var/folders/vn/wgpv_26j7gq0t2f1c6vpy4_h0000gp/T/d20201024-23939-1als65r/file.zip https://amappc.oss-cn-zhangjiakou.aliyuncs.com/lbs/static/zip/AMap_iOS_Foundation_Lib_V1.6.4.zip --create-dirs --netrc-optional --retry 2
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (7) Failed to connect to 127.0.0.1 port 10800: Connection refused
    
    

    查谷歌

    给出如下方案:

    1. 关闭代理
    2. 清除 git config proxy

    首先,我并没有设置代理的映射,只开了开代理,然后,我也试了如上两个方案还是一样的报错,最后我切换了 CocoaPods 的源,也是无济于事。

    PS :安装其他库没有什么问题。

    就是这个库,给我报了这么一个错误.我都快奔溃了。

    大佬们还有什么好的方案,让我尝试一样吗,感谢每一位回复的大佬

    第 1 条附言  ·  2020-11-03 12:24:01 +08:00
    感谢诸位的回复
    重新检查了一下代理的配置(),发现这个文件
    ~/.curlrc 做了映射,删除了就好了。代理的配置是前大佬配置的,他没把代理的配置完全删完。
    7 条回复    2020-11-03 16:55:32 +08:00
    mcluyu
        1
    mcluyu  
       2020-11-03 11:36:04 +08:00
    curl: (7) Failed to connect to 127.0.0.1 port 10800: Connection refused

    这还是走的代理啊貌似。清除代理后重启终端试试。
    lonelymarried
        2
    lonelymarried  
       2020-11-03 11:36:36 +08:00
    Failed to connect to 127.0.0.1 port 10800
    很明显代理连不上
    hengcheng
        3
    hengcheng  
    OP
       2020-11-03 11:44:43 +08:00
    @mcluyu 重启终端后,已经关闭代理了,还是一样,就安装这个库有问题。
    hengcheng
        4
    hengcheng  
    OP
       2020-11-03 11:45:30 +08:00
    @lonelymarried 代理都关了,而且设置也清除了..
    hengcheng
        5
    hengcheng  
    OP
       2020-11-03 11:48:48 +08:00
    @mcluyu 是不是要清除 cocopods 的安装缓存什么的试一下
    boris93
        6
    boris93  
       2020-11-03 11:58:48 +08:00 via Android
    检查环境变量 HTTP_PROXY HTTPS_PROXY
    CommandZi
        7
    CommandZi  
       2020-11-03 16:55:32 +08:00
    你确定.zshrc 之类的没有设置代理?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   833 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:47 · PVG 06:47 · LAX 15:47 · JFK 18:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.