CocoaPods 설치

sudo gem install cocoapods

 

라이브러리 설치(적용)

- 콘솔창 -> 프로젝트 폴더 이동 명령어 입력하면 Podfile이 생성됩니다.

pod init

 

Podfile 오픈 후 필요한 라이브러리 추가 후 저장

ex) pod 'Alamofire'

 

라이브러리 설치 

pod install

 

xcode 실행시 [프로젝트명.xcodeproj]  아닌 [프로젝트명.xcworkspace] 파일을 더블클릭하면 됩니다.

 

라이브러리 정리

Pod 라이브러리가 꼬였을 경우 삭제 후 재설치

sudo gem install cocoapods-deintegrate cocoapods-clean
pod deintegrate
pod clean
pod install

 

 

+ Recent posts