导入Alamofire 3.4 - 没有这样的模块“Alamofire” [英] Importing Alamofire 3.4 - No such module 'Alamofire'

查看:645
本文介绍了导入Alamofire 3.4 - 没有这样的模块“Alamofire”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要Alamofire进口的项目,并且我采取的每个措施都让我陷入了同样的困境中
进口Alamofire - 没有这样的模块'Alamofire'

    b $ b
  • 已安装的cocoapods

  • 已编辑的Podfile:


源' https://github.com/CocoaPods/Specs.git '

 平台:ios,'9.0'

use_frameworks!

target'my project name'do

pod'Alamofire','〜> 3.4'

end

$ pod install



一切都很顺利,并且在安装cocoapods的过程中没有错误。



使用projectname.xcworkspace打开项目

即使尝试过手动操作,仍然会出现同样的问题 - 没有这样的模块'Alamofire'



感谢您提前给予帮助。

解决方案

请勿导入Alamofire ,然后执行 Build 。我认为这很有帮助。


I hava a project that need Alamofire imported and every aproach i took got me to same porblem import Alamofire - No such module 'Alamofire'

  • Installed cocoapods
  • Edited Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'

use_frameworks!

target 'my project name' do

    pod 'Alamofire', '~> 3.4'

end

$ pod install

everything was smooth and had no errors in the proces from installing cocoapods to the end.

Opened project with projectname.xcworkspace

Even tried the manually and still the same problem - No such module 'Alamofire'

Thank you for the help in advance.

解决方案

Do import Alamofire and then do Build. I think it's helpful.

这篇关于导入Alamofire 3.4 - 没有这样的模块“Alamofire”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆