美文网首页
swift 更新cocoapods第三方库报错

swift 更新cocoapods第三方库报错

作者: FengxinLi | 来源:发表于2017-03-14 15:44 被阅读38次

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'

相关文章

网友评论

      本文标题:swift 更新cocoapods第三方库报错

      本文链接:https://www.haomeiwen.com/subject/eglhnttx.html