使用Pod在Mac中安装Alamofire时出错 [英] Error installing Alamofire in Mac Using Pod

查看:1422
本文介绍了使用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 https://github.com/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,

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

Windows

  1. 转到控制面板>用户帐户>凭证管理器> Windows凭证>通用凭据
  2. 删除Github键

这篇关于使用Pod在Mac中安装Alamofire时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆