[!] 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.
当使用cocoapod报这个错的时候,需要在你的podfile文件的每一个添加三方库的下面加一句 use_frameworks.
such as:
platform :ios, '8.1'
use_frameworks!
pod 'Masonry', '~> 0.6.1'
出现这个问题可能的原因估计是三方库里面有swift文件