★ Cocoapodsのバージョンを更新する
gem update cocoapods
// ベータ版にアップデートする場合
gem update cocoapods --pre
★ Podfileを作成する
pod init
★ cocoapods 1.1未満のSwift3対応
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
★ cocoapods 1.1の場合のSwift3
swift_version = '3.0'
★ pod initデフォルトテンプレート
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Product Name' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Product Name
end
★ podのバージョンを確認する
pod --version
★ ブランチを指定して取り込む
pod 'LTMorphingLabel', :git => 'https://github.com/lexrus/LTMorphingLabel', :branch => 'swift3'