美文网首页
Swift import Alamofire报错

Swift import Alamofire报错

作者: A嗄嗄 | 来源:发表于2017-05-19 13:47 被阅读0次

我在网上找了好多资料,都会出现 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

相关文章

网友评论

      本文标题:Swift import Alamofire报错

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