Protocol “https” not supported or disabled in libcurl

前端 未结 3 496
半阙折子戏
半阙折子戏 2021-01-08 00:31

Here\'s my Podfile content:

platform :ios, ‘8.0’
use_frameworks!

target \'Project-Name\' do

pod \'Firebase/Core\'
pod \'Firebase/Messaging\'

end


        
相关标签:
3条回答
  • 2021-01-08 00:36

    After I've installed macOS High Sierra, I've encountered the same issue when install firebase via pod.

    The trick was to remove the curl and install it again:

    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 
    

    after you should close & quit all terminal or iTerm, then open it again run brew doctor then run curl --version you should see https in the protocol list

    Then you should be good to go :)

    0 讨论(0)
  • 2021-01-08 00:41

    Your URL is corrupt. Check for spaces or other characters at the beginning of the URL (before http or https).

    0 讨论(0)
  • 2021-01-08 00:54

    You might need to update git. One way:

    brew install git
    

    More here

    0 讨论(0)
提交回复
热议问题