首页 > 解决方案 > 获取 curl:(22)请求的 URL 返回错误:403 Forbidden while install linphone through cocoa pods?

问题描述

我正在通过可可豆荚安装 linphone 并出现错误

以下是 pod 文件代码

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

target 'SimLess' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!


  # Pods for SimLess
    pod 'liblinphone'
    pod 'Alamofire'
    pod 'SwiftyJSON'
    pod 'IQKeyboardManagerSwift'
    pod 'Kingfisher'
    pod 'MBProgressHUD'
    pod 'SCNetworkReachability'
    pod  'ReachabilitySwift'
    pod 'SideMenu'
  target 'SimLessTests' do
    inherit! :search_paths
    # Pods for testing
  end

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

结尾

我收到以下错误:

[!] 安装 liblinphone 时出错 [!] /usr/bin/curl -f -L -o /var/folders/ry/smn70dn550xflcjls8_hh2t40000gn/T/d20191116-26192-nqvjxb/file.zip https://lingusocial-media-eu .ams3.digitaloceanspaces.com/shared/liblinphone-iphone-sdk-4.0.2.zip --create-dirs --netrc-optional --retry 2

% Total % Received % Xferd 平均速度 时间 时间 当前 Dload 上传总花费 左速度 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 curl: (22) 请求的URL返回错误:403 Forbidden

如何解决这个问题?

注意:如果我要删除 libliphone,则其他 pod 已成功安装。

标签: iosswiftcocoapodslinphone

解决方案


你能用吗

   pod 'Liblinphone'

代替

    pod 'liblinphone'

所有 pod 都以 Caps 开头如果它不能解决您的问题,那么请执行

 sudo gem install cocoapods

这将确保您的 cocoapods 或

 pod try liblinphone

推荐阅读