31 07 2017
설치
1 |
$sudo gem install cocoapods |
프로젝트에 cocoapod 적용
1 2 3 4 5 6 7 8 9 |
$cd /적용대상 Project $pod init 이렇게 하면 초기화(Podfile)이 생성된다. $vi Podfile 수정 platform :ios, '9.0' target "적용대상 Project " do pod 'Firebase' // 가져오고자 하는 library end |
1 |
pod install |
프로젝트를 오픈 “적용대상 Project”.xcworkspace를 오픈한다. 반드시 *.xcworkspace를 오픈한다. 끝 삭제할 경우 https://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project 1.Delete the standalone files (Podfile Podfile.lock and your Pods directory) 2.Delete the generated xcworkspace 3.Open your xcodeproj file, delete the references to Pods.xcconfig and libPods.a (in the Frameworks group) 4.Under your Build Phases delete the Copy Pods Resources, Embed Pods Frameworks andCheck Pods Manifest.lock phases. 5.This may seem obvious but you’ll need […]