31 07 2017
IOS cocoapods 설치
- 설치
- 프로젝트에 cocoapod 적용
-
- 프로젝트를 오픈
“적용대상 Project”.xcworkspace를 오픈한다.
반드시 *.xcworkspace를 오픈한다.
끝
- 1.Delete the standalone files (
Podfile
Podfile.lock
and yourPods
directory) - 2.Delete the generated
xcworkspace
- 3.Open your
xcodeproj
file, delete the references toPods.xcconfig
andlibPods.a
(in theFrameworks
group) - 4.Under your
Build Phases
delete theCopy Pods Resources
,Embed Pods Frameworks
andCheck Pods Manifest.lock
phases. - 5.This may seem obvious but you’ll need to integrate the 3rd party libraries some other way or remove references to them from your code.
-
- TroubleShooting
– install 후에 No such module ‘Firebase…’ Error => pod update
-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory
위의 에러가 발생할 경우 (보통 Mac OS 업그레이드 후 발생)
sudo gem install cocoapods 다시 설치하면 해결