我在尝试从 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 ,版本可用
奇怪的是,它在具有相同 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/