使用Pod在Mac中安装Alamofire时出错

编程入门 行业动态 更新时间:2024-10-24 06:31:32
本文介绍了使用Pod在Mac中安装Alamofire时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用pod为 iOS 应用开发安装Alamofire.我的 podfile 如下所示:

I am trying to install Alamofire for iOS app development using pod. My podfile looks like below:

# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'AlamoFireBackgroundTask' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! pod 'Alamofire' # Pods for AlamoFireBackgroundTask end

我跑步时

pod install

我收到以下错误消息:

[!] Error installing Alamofire [!] /usr/bin/git clone github/Alamofire/Alamofire.git /var/folders/0f/tk8t38hn0pq_81glyqfgsp6m0000gn/T/d20191105-77916-ujlfnd --template= --single-branch --depth 1 --branch 4.9.1 Cloning into '/var/folders/0f/tk8t38hn0pq_81glyqfgsp6m0000gn/T/d20191105-77916-ujlfnd'... error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403 Forbidden fatal: the remote end hung up unexpectedly

有人可以提出解决方案吗?

can anyone suggest a solution?

推荐答案

"403"表示禁止访问.有时,存储在计算机中的凭据会过时,尤其是当您在多个github帐户之间切换时.以下解决方案可能有效,

‘403’ means access forbidden. Sometimes your credentials stored in machines become stale especially if you switch between multiple github accounts. Below solution might work,

  • 打开钥匙串应用程序
  • 在钥匙串访问"中,搜索github
  • 找到互联网密码" github的条目
  • 相应地编辑或删除条目
  • Windows

  • 转到控制面板>用户帐户>凭证管理器> Windows凭证>通用凭据
  • 删除Github键
  • 更多推荐

    使用Pod在Mac中安装Alamofire时出错

    本文发布于:2023-11-26 21:05:26,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1635194.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Pod   Mac   Alamofire

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!