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

我正在尝试使用pod为{em> iOS 应用开发安装Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder .UseLibuv(opts =>{ opts.NoDelay = false; }) .UseStartup<Startup>(); }); 。我的 podfile 如下所示:

Alamofire

我跑步时

# 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

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

dasnan 回答:使用Pod在Mac中安装Alamofire时出错

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

Mac

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

Windows

  1. 转到控制面板>用户帐户>凭据管理器> Windows凭据>通用凭据
  2. 删除Github键
本文链接:https://www.f2er.com/3160408.html

大家都在问