はじめに
CocoaPodsをつかうときの自分用メモ
CocoaPodsはインストールしてある前提
pod init
対象のプロジェクトディレクトリをターミナルで開いて
pod init
上記コマンドをいれてPodfileを生成します。
pod file 編集
今回はRealmを追加する場合
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'RealmTest' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'RealmSwift'
# Pods for TodoListApp
end
pod install
これでターミナルでpod installコマンドを実施します。