ios – UNRESOLVED:libcurl中不支持或禁用协议“https”

ios – UNRESOLVED:libcurl中不支持或禁用协议“https”,第1张

概述这个问题可能重复,但是没有一个可用的解决方案适用于我.所以,这里是细节和我迄今为止所尝试过的. 这是我的Podfile内容: platform :ios, ‘8.0’use_frameworks!target 'Project-Name' dopod 'Firebase/Core'pod 'Firebase/Messaging'end 将pod’GoogleMaps’添加到Podf 这个问题可能重复,但是没有一个可用的解决方案适用于我.所以,这里是细节和我迄今为止所尝试过的.

这是我的Podfile内容:

platform :ios,‘8.0’use_frameworks!target 'Project-name' dopod 'Firebase/Core'pod 'Firebase/Messaging'end

将pod’GoogleMaps’添加到Podfile中时会出现同样的错误.

运行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-optionalcurl: (1) Protocol "https" not supported or Disabled in libcurl

编辑1:How do I enable curl SSL on Mac OS X?

./configure –with-darwinssl不工作.

-bash: ./configure: No such file or directory

编辑2:How do I enable https support in libcurl?

这个命令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 installedUB:lib aspl$curl --versioncurl 7.48.0 (x86_64-apple-darwin14.5.0) libcurl/7.48.0 zlib/1.2.5Protocols: 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’: Not a directory.
Fatal error: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: internal objdump command Failed
Binary file /usr/lib/libcurl.4.dylib matches

编辑:3 git显示/usr/local / bin / git的终端命令

编辑:4 Enabling HTTPS Support in Curl Installed Through MacPorts on OSX

运行sudo端口安装curl ssl或sudo port uninstall curl说:

sudo: port: command not found

并安装端口(MacPorts)以下链接使用,这又是一个httpS链接:

$curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.3.4.tar.bz2

还有MacPort文件夹的下载选项?

但是如何使用这个downloadMacPorts-2.3.4文件夹?

编辑5:强制卸载卷曲并重新安装不工作:(

$brew uninstall curlUninstalling /usr/local/Cellar/curl/7.50.1... (366 files,2.6M)curl 7.46.0 is still installed.Remove them all with `brew uninstall --force curl`.$brew uninstall --force curlUninstalling curl... (360 files,2.6M)$brew install curl --with-libssh2 --verboseError: curl 7.50.2 dID not buildLogs:     /Users/aspl/library/Logs/Homebrew/curl/01.configure     /Users/aspl/library/Logs/Homebrew/curl/01.configure.cc     /Users/aspl/library/Logs/Homebrew/curl/02.make     /Users/aspl/library/Logs/Homebrew/curl/config.logThese open issues may also help:curl: migrate to [email protected] https://github.com/Homebrew/homebrew-core/pull/4591
解决方法 您可能需要更新git.单程:
brew install git

更多here

总结

以上是内存溢出为你收集整理的ios – UNRESOLVED:libcurl中不支持禁用协议“https”全部内容,希望文章能够帮你解决ios – UNRESOLVED:libcurl中不支持或禁用协议“https”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1112322.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存