Ios 协议“;https";libcurl中不支持或禁用
以下是我的播客文件内容:Ios 协议“;https";libcurl中不支持或禁用,ios,macos,google-maps,firebase,libcurl,Ios,Macos,Google Maps,Firebase,Libcurl,以下是我的播客文件内容: platform :ios, ‘8.0’ use_frameworks! target 'Project-Name' do pod 'Firebase/Core' pod 'Firebase/Messaging' end 将pod'GoogleMaps'添加到pod文件时也会发生相同的错误 在终端上运行pod安装--verbose命令时出错: [!] Error installing Firebase [!] /usr/local/bin/curl -f -L
platform :ios, ‘8.0’
use_frameworks!
target 'Project-Name' do
pod 'Firebase/Core'
pod 'Firebase/Messaging'
end
将pod'GoogleMaps'
添加到pod文件时也会发生相同的错误
在终端上运行pod安装--verbose命令时出错:
[!] Error installing Firebase
[!] /usr/local/bin/curl -f -L -o /var/folders/1t/102_4r0x1_3_5dlq8zdbm27r0000gn/T/d20160902-4388-1omozrn/file.tgz https://www.gstatic.com/cpdc/cc5f7aac07ccdd0a/Firebase-3.5.0.tar.gz --create-dirs --netrc-optional
curl: (1) Protocol "https" not supported or disabled in libcurl
编辑1:
/configure——达尔文SSL
不工作
-bash:./configure:没有这样的文件或目录
编辑2:
此命令brew install curl--with-libssh2
在终端上执行,但不知道下一步要做什么:
UB:lib aspl$ brew install curl --with-libssh2 --verbose
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
Warning: curl-7.50.1 already installed
UB:lib aspl$ curl --version
curl 7.48.0 (x86_64-apple-darwin14.5.0) libcurl/7.48.0 zlib/1.2.5
Protocols: dict file ftp gopher http imap ldap ldaps pop3 rtsp smtp telnet tftp
Features: IPv6 Largefile libz UnixSockets
此命令不起作用:
$ otool -L /usr/local/git/libexec/git-core/git-http-push | grep curl
/usr/lib/libcurl.4.dylib
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump:“/usr/local/bin/git/libexec/git core/git http push”:不是目录。
致命错误:/Applications/Xcode-beta.app/Contents/Developer/Toolchains/xcodefault.xctoolchain/usr/bin/otool:内部objdump命令失败
二进制文件/usr/lib/libcurl.4.dylib匹配
编辑:3终端命令哪个git
显示/usr/local/bin/git
编辑:4
运行sudo端口安装curl+ssl
或sudo端口卸载curl
会显示:
sudo:port:未找到命令
要安装端口(MacPorts),请使用以下链接,这也是一个HTTPS链接:
$curl-Ohttps://distfiles.macports.org/MacPorts/MacPorts-2.3.4.tar.bz2
还有MacPort文件夹的下载选项吗
但是如何处理下载的MacPorts-2.3.4
文件夹
编辑5:强制卸载卷曲并再次安装无效:(
您可能需要更新git。一种方法:
brew install git
更多信息在我安装了macOS High Sierra
之后,我在通过pod
安装firebase时遇到了同样的问题
诀窍是移除卷曲部分,然后重新安装:
curl --version // you will see the https protocol is missing, and the version would be 7.56.1 if you did try to update it before
brew remove curl
brew install curl --with-darwinssl // install with darwin instead of openssl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc // run this
关闭并退出所有终端或iTerm后,再次打开它运行brew doctor
,然后运行curl--version
,您应该在协议列表中看到https
那你就可以走了:)你的URL已经损坏了。检查URL开头的空格或其他字符(在http
或https
之前)。没有帮助,我的libCurl不支持“https”。赏金开始了!更多关于stackoverflow的问题和公认的答案——根据这一条——do./configure——使用darwinsslAnd根据do sudo port安装curl@7.19.3_0+ssl如果您的curl安装时没有https,根据,根据某人的说法,在安装或卸载sudo端口之前,你需要先停用sudo端口……你知道你是怎么得到这个损坏的curl版本的吗?Curl已经预装在MacOS X上,https在开箱即用的情况下工作得很好。您是否手动安装或升级到新版本?如果是的话-你是怎么做到的?我不知道..但是有没有办法恢复或安装它的正确版本?我有24小时的时间来奖励赏金。这只是猜测。这可能会让事情变得更糟。但我会尝试运行brew卸载curl
。然后再次执行“curl”。也许你会回到https支持的默认curl。如果curl已完全删除,则可以在之后执行“brew安装curl--with-libssh2--verbose”。同样,这是有风险的。如果系统上没有curl,Brew可能无法下载任何内容。但这是我唯一的建议:(目前无法复制错误,但会将其标记为有用!对我不起作用..警告:curl:此公式没有--with darwinssl选项,因此将忽略它!太好了:)。很好
curl --version // you will see the https protocol is missing, and the version would be 7.56.1 if you did try to update it before
brew remove curl
brew install curl --with-darwinssl // install with darwin instead of openssl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc // run this