Cocoapods curl : (22) The requested URL returned error: 403 Forbidden

标签 cocoapods

我在尝试从 Cocoapods 获取仅影响特定计算机的“SpotX”依赖项时遇到问题。我在我的个人 MacBook Pro 上尝试过,效果很好。但是,我的 Mac Mini 出现故障。

Podfile 看起来像这样:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'Demo' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Demo
  pod 'SpotX-SDK'
  pod 'SuperAwesome', '7.2.13'
  pod 'SpotX-SDK-AVPlayer'

  target 'DemoTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'DemoUITests' do
    # Pods for testing
  end

end

target 'DemoTV' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for DemoTV
  pod 'SpotX-SDK-AVPlayer'

  target 'DemoTVTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'DemoTVUITests' do
    # Pods for testing
  end

end

根据Here ,版本可用

给出的错误信息是: enter image description here

奇怪的是,它在具有相同 Xcode 版本的其他计算机上工作......

有什么想法吗?

数据:

git version 2.24.3 (Apple Git-128)
Cocoapods version = 1.10.1

最佳答案

确保您有权访问 cocoapod zip 文件的 URL(尝试在浏览器上打开它)

就我而言,这是一个 VPN 问题,我必须禁用 VPN 才能访问该网址,然后我再次尝试 pod install 并且成功了

关于Cocoapods curl : (22) The requested URL returned error: 403 Forbidden,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67740512/

相关文章:

ios - pod 安装 [!] 错误 : Parsing unable to continue due to parsing error:

xcode - “sudo gem install cocoapods”在 El Capitan 10.11.4 上不起作用,错误 : Could not find a valid gem 'cocoapods' (>= 0) in any repository

ios - Swift:如何将 pod 链接到我自己的框架

svg - Cocoapods 规范访问和所有权问题

Pod 上的 Swift 编译器错误

objective-c - 在 swift 项目中使用 Objective C 文件而不使用 use_frameworks 标志

ruby - OS X 优胜美地 : Impossible to install cocoapods

ruby - 在 Mac OS Catalina (10.15.7) 上安装 cocoapods 时出错

ios - cocoa pod - 多重依赖

ios - 库未加载 - Alamofire