swift 更新cocoapods第三方库报错
2017-03-14 本文已影响38人
FengxinLi
swift 用cocoapods 安装第三方库的时候 报[!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or target to opt into using it. The Swift Pods being used are: Alamofire, Kingfisher, and SwiftyJSON
我们需要在Podfile 文件里面加上 use_frameworks! inhibit_all_warnings! 具体位置像下面这样
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
pod 'Alamofire'