cocoapods가 없다면 미리 설치해두자
sudo gem install cocoapods
// xcode project 파일이 있는 위치에서
pod init
pod init 명령을 사용하면 아래 그림과 같이 Podfile이 생긴 것을 볼 수 있다.
필요한 라이브러리를 Podfile에 추가한다!
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '10.0'
target 'DuelDice' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for DuelDice
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'GoogleSignIn'
pod 'FBSDKLoginKit'
target 'DuelDiceTests' do
inherit! :search_paths
# Pods for testing
end
target 'DuelDiceUITests' do
# Pods for testing
end
end
다시 터미널로 돌아가 라이브러리 설치를 진행한다.