iOS 학습 노트 - CocoaPods 설치 및 문제 해결
sudo gem update --system
다음 오류가 발생할 수 있습니다.
error: while executing gem ...(error:EPERM) Operation no permitted -/usr/bin/update_rubygems
다음 명령을 입력합니다.
sudo gem update -n /usr/local/bin --system
2. Redy 소스 업데이트 2.1 시스템 소스 보기, 명령 입력
gem sources -l
일반적인 경우 기본 루비 소스는
https://rubygems.org/
국내에서는 사용할 수 없기 때문에 사용할 수 있는 루비 원본을 교체해야 합니다. 먼저 검색된 원본을 제거해야 합니다.
gem sources --remove https://rubygems.org/
그리고 사용할 수 있는 원본을 추가합니다.
gem source -a https://gems.ruby-china.org/
원래 타오바오 미러는 현재 사용 중인 루비 원본을 사용할 수 없습니다.https://gems.ruby-china.org/
만약 오류가 발생하면 https 요청에 인증서가 필요합니다
error:ssl verification error at depth 1:unable to get local issuer certificate(20) error:you must add/O=Digital Signature Trust Co./Cn=DST Root CA...
소스를
gem source -a http://gems.ruby-china.org/
3. cocoapods 설치 명령은 다음과 같습니다.
sudo gem install cocoapods
Mac 버전 시스템 버전이 업데이트되면 오류가 발생할 수 있습니다.
error:While executing gem ...(errno::erperm) Operation not permitted -/usr/bin/xcodeproj
다음 명령을 수행합니다.
sudo gem install -n /usr/local/bin cocoapods --pre
그런 다음 CocoaPods를 구성하고 명령을 입력합니다.
pod setup
기다리다성공 힌트가 있으면 설치가 됩니다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.