2016-07-15 2 views
7

내가 맥 OS X 10.12에 설치 Cocoapods에 노력하고 MAC OSX에 물건을 받기에 달려, 나는 그것이 수신 객체에 달려 터미널에서이 명령을 실행하기 위해 노력했다 터미널 출력 : -망할 놈의 클론이 10.12

  Cloning into 'master'... 
      * Couldn't find host github.com in the .netrc file; using defaults 
      * Trying 192.30.253.112... 
      * Connected to github.com (192.30.253.112) port 80 (#0) 
      > GET /CocoaPods/Specs.git/info/refs?service=git-upload-pack HTTP/1.1 
      Host: github.com 
      User-Agent: git/2.7.4 (Apple Git-66) 
      Accept: */* 
      Accept-Encoding: gzip 
      Pragma: no-cache 

      < HTTP/1.1 301 Moved Permanently 
      < Content-length: 0 
      < Location: https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack 
      < Connection: close 
      < 
      * Closing connection 0 
      * Issue another request to this URL: 'https://github.com/CocoaPods/Specs.git/info/refs?service=git-upload-pack' 
      * Couldn't find host github.com in the .netrc file; using defaults 
      * Trying 192.30.253.112... 
      * Connected to github.com (192.30.253.112) port 443 (#1) 
      * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 
      * Server certificate: github.com 
      * Server certificate: DigiCert SHA2 Extended Validation Server CA 
      * Server certificate: DigiCert High Assurance EV Root CA 
      > GET /CocoaPods/Specs.git/info/refs?service=git-upload-pack HTTP/1.1 
      Host: github.com 
      User-Agent: git/2.7.4 (Apple Git-66) 
      Accept: */* 
      Accept-Encoding: gzip 
      Pragma: no-cache 

      < HTTP/1.1 200 OK 
      < Server: GitHub Babel 2.0 
      < Content-Type: application/x-git-upload-pack-advertisement 
      < Transfer-Encoding: chunked 
      < Expires: Fri, 01 Jan 1980 00:00:00 GMT 
      < Pragma: no-cache 
      < Cache-Control: no-cache, max-age=0, must-revalidate 
      < Vary: Accept-Encoding 
      < X-GitHub-Request-Id: 69EEB048:2D36F:6AF964:57888CD0 
      < X-Frame-Options: DENY 
      < 
      * Connection #1 to host github.com left intact 
      POST git-upload-pack (305 bytes) 
      * Couldn't find host github.com in the .netrc file; using defaults 
      * Found bundle for host github.com: 0x7fc3d750be30 
      * Re-using existing connection! (#1) with host github.com 
      * Connected to github.com (192.30.253.112) port 443 (#1) 
      > POST /CocoaPods/Specs.git/git-upload-pack HTTP/1.1 
      Host: github.com 
      User-Agent: git/2.7.4 (Apple Git-66) 
      Accept-Encoding: gzip 
      Content-Type: application/x-git-upload-pack-request 
      Accept: application/x-git-upload-pack-result 
      Content-Length: 305 

      * upload completely sent off: 305 out of 305 bytes 
      < HTTP/1.1 200 OK 
      < Server: GitHub Babel 2.0 
      < Content-Type: application/x-git-upload-pack-result 
      < Transfer-Encoding: chunked 
      < Expires: Fri, 01 Jan 1980 00:00:00 GMT 
      < Pragma: no-cache 
      < Cache-Control: no-cache, max-age=0, must-revalidate 
      < Vary: Accept-Encoding 
      < X-GitHub-Request-Id: 69EEB048:2D36F:6AFF66:57888CD9 
      < X-Frame-Options: DENY 
      < 
      remote: Counting objects: 747987, done. 
      remote: Compressing objects: 100% (17/17), done. 
      Receiving objects: 1% (10862/747987), 2.16 MiB | 437.00 KiB/s 

내가 여기에 SO에이 문제에 대한 다른 질문을 보았다,이 솔루션의 불행하게도 비는했다.

업데이트 : -

터미널은 잠시 후이 오류를 보여 주었다 : -

* SSLRead() return error -9806/747987), 2.16 MiB | 437.00 KiB/s 
* Closing connection 1 
error: RPC failed; curl 56 SSLRead() return error -9806 
fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed` 

답변

4

나는 그것이 내 옆에 네트워크 문제입니다 확인합니다. 나는 윈도우 10 시스템에서이 명령을 실행 : -

git clone http://github.com/CocoaPods/Specs.git master

그런 다음 터미널 cp 명령을 (일반 복사하여 파인더 시간 동안 응답)를 사용하여 MAC OSX 시스템에서이 디렉토리에 마스터 REPO 복사 : -

~/.cocoapods/repos/master

마법처럼 일했다 그리고 마지막으로 포드 초기화 후 포드 내 프로젝트 디렉토리에 --verbose 설치하고

7

See this answer.

NAT에서 VMware에서이 문제가 발생했습니다. 브릿지를 (상태 복제)으로 변경하면 문제가 해결됩니다.

+0

감사합니다. 시도해 보겠습니다. – Waxren

+0

도움이되었습니다. 백만 감사드립니다! – rommex

+0

mg 10 억 감사합니다. – user924