本文介绍了使用Pod在Mac中安装Alamofire时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
打开钥匙串应用程序
在钥匙串访问"中,搜索github
找到互联网密码" github的条目
相应地编辑或删除条目
转到控制面板>用户帐户>凭证管理器> Windows凭证>通用凭据
删除Github键
我正在尝试使用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,
Windows
更多推荐
使用Pod在Mac中安装Alamofire时出错
发布评论