加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift安装cocoapod遇到的一些坑

发布时间:2020-12-14 01:30:38 所属栏目:百科 来源:网络整理
导读:给swift安装cocoapod花了半天时间,真是各种坑,先是遇到443问题,这个是网络问题,后来又出现:[!] 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
给swift安装cocoapod花了半天时间,真是各种坑,先是遇到443问题,这个是网络问题,后来又出现:[!] 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 and SwiftyJSON

去stackoverflow搜了发现要在Podfile加上
use_frameworks!


加完之后我的Podfile是这样:

platform :ios,'8.0'
pod 'SwiftyJSON','~> 2.2.0'
pod 'Alamofire','~> 1.2.3'
pod 'SDWebImage','~> 3.7.2'
use_frameworks!


恩,这样就没问题了

附上stackoverflow解决方案的链接:http://stackoverflow.com/questions/29091522/error-running-pod-install-with-swift

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读