2017-12-22 5 views
0

Cocoapod (Firebase)를 설치하려고하면이 문제가 나타납니다.Cocoapods가 libcurl에서 "https"를 지원하지 않거나 비활성화되었습니다.

Installing Firebase (4.7.0) 

[!] Error installing Firebase 
[!] /usr/local/bin/curl -f -L -o /var/folders/xv/ghl7s0wx2m3_0hwh15spwfrc0000gn/T/d20171222-26613-2tuztl/file.tgz https://dl.google.com/dl/cpdc/51a9c1fa1090163e/Firebase-4.7.0.tar.gz --create-dirs --netrc-optional 

curl: (1) Protocol "https" not supported or disabled in libcurl 

왜 이런 일이 발생합니까?

답변

0

curl을 SSL 지원이없는 버전으로 다시 작성하거나 교체했을 수 있습니다.

수정하려면 curl 버전이 SLL로 제작되었는지 확인해야합니다.

  • 다운로드 및 Mac에 OpenSSL을
  • https://www.openssl.org/source/
  • 를 설치 : 다음 단계를 수행

    ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl \ 
          -Wl,-rpath,/usr/local/ssl/lib 
        make 
        sudo make install 
    
  • 구성 SSL과 맥에 컬을 설치, 그렇지 않으면 https와 컬 명령이 실패합니다. 맥에

    • : 시도 이제

      SSL support:  enabled (OpenSSL) 
      
  • :

    ./configure --with-ssl 
    make 
    sudo make install 
    
  • 가 SSL 확인은 구성 단계 후에 설치, 당신은 다음과 같은 텍스트가 같은 것을 볼 수있다 Cocoapods를 설치하십시오.

     pod install 
    
  • 당신은 완료 https 컬 종속성을 볼 수 :

    Analyzing dependencies 
    Downloading dependencies 
    Installing Firebase (4.8.0) 
    Installing FirebaseAnalytics (4.0.5) 
    Installing FirebaseCore (4.0.13) 
    
관련 문제