본문 바로가기

STUDY/ECT

CocoaPods 설치

CocoaPods?
CocoaPods manages library dependencies for your Xcode projects.
xcode에서 사용하는 외부 라이브러리 관리를 도와줌.
 

CocoaPods 사용법과 파일구조

코코아팟은 배포와 사용 두가지 측면으로 나누어집니다. 누군가 라이브러리를 배포했기 때문에 우리가 사용할 수 있습니다. 이번 글에서는 사용에 대해서 알아보겠습니다.

medium.com


1. 코코아팟 공식 홈페이지 접속

 

CocoaPods.org

CocoaPods is built with Ruby and is installable with the default Ruby available on macOS. We recommend you use the default ruby. Using the default Ruby install can require you to use sudo when installing gems. Further installation instructions are in the g

cocoapods.org

gem은 ruby프로그램의 의존성 관리 도구.. cocoapods는 ruby로 만들어졌기 때문에 gem을 통해 설치하는 것 같다.

mac은 기본적으로 ruby가 설치되어있어 cocoapods만 받으면 된다고 함.

$ sudo gem install cocoapods

 

2. 터미널에서 설치 진행

패스워드는 맥북 비밀번호 쳤더니 됐다.

 

 


+) 참고

 

CocoaPods Guides

CocoaPods is fully open-sourced, so it depends on community contributions to get better. If you're looking to start working on CocoaPods, this is the place to start.

guides.cocoapods.org