ios - 获取 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 已成功安装。
解决方案
你能用吗
pod 'Liblinphone'
代替
pod 'liblinphone'
所有 pod 都以 Caps 开头如果它不能解决您的问题,那么请执行
sudo gem install cocoapods
这将确保您的 cocoapods 或
pod try liblinphone
推荐阅读
- java - 如何用杰克逊解组对象
- c# - 如何通过 VS 插件/扩展更改 Visual Studio 解决方案资源管理器中的项目图标
- c++ - 在 C++ 中此输出的可能原因是什么?
- c++ - 当依赖于代码时,如何从 Cpp 执行操作系统命令?
- django - 我们可以在没有 Crispy Forms Template 的情况下创建 django 表单吗?
- powershell - 在 Get-ChildItem 之后找不到 Powershell Get-Content 文件
- android - 本机 Android java 方法没有找到任何参考
- docker - 通过 docker image 运行 python 代码时出错
- python - 来自 Pandas Dataframe 的多个 Seaborn 热图
- android - Jsoup getElementsByClass 得到零结果