swift安装cocoapod遇到的一些坑

  给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

你可能感兴趣的:(swift)