cocoaPods [!] Error installing "XXX 타사 라이브러리 이름"

1656 단어
  [!] Error installing YYKit
  [!] /usr/bin/git clone https://github.com/ibireme/YYKit.git /var/folders/np/k8vh2rqj7tl9156czd7z88wm0000gn/T/d20180809-24018-hffxmu --template= --single-branch --depth 1 --branch 1.0.9

    Cloning into '/var/folders/np/k8vh2rqj7tl9156czd7z88wm0000gn/T/d20180809-24018-hffxmu'...
    fatal: unable to access 'https://github.com/ibireme/YYKit.git/': Operation timed out after 300026 milliseconds with 0 out of 0 bytes received

솔루션:


시나리오 1:


원문:https://www.jianshu.com/p/34204fd27514
라이브러리의 소스를 수정합니다.git 값 "source": {"git": "https://chromium.googlesource.com/webm/libwebp", "tag": "v0.6.0"}
git를 연결할 수 없습니다.https://chromium.googlesource.com/webm/libwebp수정:https://github.com/webmproject/libwebp.git다른 라이브러리도 비슷합니다.github 라이브러리 파일을 찾을 수 있는 곳만 찾으면 됩니다!

시나리오 2:


xcode가 실행 중이거나 열려 있는지 확인하려면 xcode를 닫으십시오.그리고pod 업데이트 명령을 실행합니다

시나리오 3:


현재 xcode 경로를 인쇄하려면 다음과 같이 하십시오.
xcode-select --print-path
예를 들어, 출력 xcode 경로:/Applications/Xcode.app/Contents/Developer
명령을 입력하십시오: (xcode 버전 경로가 여러 개 있으면 그 중 하나를 선택하십시오.)
sudo xcode-select -switch/Applications/Xcode.app/Contents/Developer
다음 오류가 발생한 경우:
    Error loading the plugin with path \\'/Library/Ruby/Gems/2.3.0/gems/cocoapods-plugins-0.3.1/lib/cocoapods_plugin.rb\\'.Errno::EACCES - Permission denied - /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-14

명령 $gem update --system을 실행하면 됩니다.
원문:https://blog.csdn.net/qq_32873193/article/details/79849353

좋은 웹페이지 즐겨찾기