Swift import Alamofire报错

2017-05-19  本文已影响0人  A嗄嗄

我在网上找了好多资料,都会出现 No such module 'Alamofire' 也有很多人说b一下就行了,还是不行,最后我解决的方法是

Uncomment this line to define a global platform for your project

platform :ios, '9.0'

target 'demoAlamofire' do

Comment this line if you're not using Swift and don't want to use dynamic frameworks

use_frameworks!

Pods for demoAlamofire

pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire'
pod 'SDCycleScrollView'
pod 'SwiftyJSON'
pod 'MJRefresh'

target 'demoAlamofireTests' do
inherit! :search_paths
# Pods for testing
end

target 'demoAlamofireUITests' do
inherit! :search_paths
# Pods for testing
end

end

上一篇 下一篇

猜你喜欢

热点阅读