1. cocoapods 설치

cocoapods가 없다면 미리 설치해두자

sudo gem install cocoapods

2. 프로젝트에 cocoapods 적용하기

// xcode project 파일이 있는 위치에서 
pod init

pod init 명령을 사용하면 아래 그림과 같이 Podfile이 생긴 것을 볼 수 있다.

Untitled

3. 필요한 라이브러리 추가하기

필요한 라이브러리를 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

4. 라이브러리 설치

다시 터미널로 돌아가 라이브러리 설치를 진행한다.