코코아 팟 설치 안내
gem 원본 바 꾸 기
gem sources --remove https://rubygems.org/
gem sources --a https://gems.ruby-china.org/ Ruby China
gem sources -l
업그레이드 gem 업데이트
sudo gem update --system
코코아 팟 은 iOS 프로젝트 의 제3자 오픈 소스 라 이브 러 리 를 관리 하 는 의존 관리 도구 다.CocoaPods 프로젝트 원본 은 Github 에서 관리 합 니 다.
cocoapods 설치
sudo gem install cocoapods
sudo gem install -n /usr/local/bin cocoapods macOS 10.11
제3자 라 이브 러 리 정보 초기 화: Podspec 파일 다운로드
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
pod setup Podspec
repo 미 러 를 국내 서버 로 변경 합 니 다.
pod repo remove master
pod repo add master https://git.coding.net/hging/Specs.git
이후 제3자 라 이브 러 리 정보 업데이트
pod repo update Podspec
수색 하 다.
pod search
새 Podfile
vim Podfile
i:
dd:
ESC:
:wq:
Podfile :
platform :ios, '8.0'
target ' ' do
pod ' '
pod ' ', '~> '
end
Podfile 을 분석 하고 제3자 프레임 워 크 를 설치 합 니 다: 기본적으로 Podspec 파일 을 업데이트 합 니 다.
pod install Podfile
Podfile 분석, 제3자 프레임 워 크 업그레이드: 기본적으로 Podspec 파일 을 업데이트 합 니 다.
pod update Podfile github ( )
이후 CocoaPods 를 사용 하 는 과정 에서 이상 한 문제 가 발생 했 습 니 다. sudo gem update -- system 업데이트 gem sudo gem install cocoapods 를 다시 설치 하고 cocoapods pod setup 을 통 해 제3자 라 이브 러 리 정 보 를 초기 화 할 수 있 습 니 다.