Swiftで作られたライブラリをCocoaPodsで読み込む
環境
$ pod --version 0.38.2
SwiftのライブラリをCocoaPodsで普通に$ pod installすると以下のエラーが出る
[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pod being used is: ライブラリ名
エラー解決方法
Podfileにuse_frameworks!という記述を追加する
Podfileの例
# Uncomment this line to define a global platform for your project # platform :ios, '7.0' use_frameworks! target 'MyApp' do pod 'ライブラリ名' end