简体   繁体   English

否这样的模块“ Alamofire”,但是我已经安装了它

[英]No Such module 'Alamofire',but I have pod it already

没有这样的模块“ Alamofire”

As the above picture, when I click the EvoRadio.xcworkspace and run the applictaion, it warns me that No Such module 'Alamofire' , No Such module'ObjectMapper' ……,but I have already pod them with CocoaPods . 如上图所示,当我单击EvoRadio.xcworkspace并运行该应用程序时,它警告我No Such module 'Alamofire'No Such module'ObjectMapper' No Such module 'Alamofire' No Such module'ObjectMapper' ……,但是我已经用CocoaPods它们。

Pod Steps: 吊舱步骤:

(1) pod init (1) pod init

(2)Edit the podfile as follows: (2)编辑podfile如下: 播客文件

(3) pod install (3) pod install

And I have create a bridging header file ( EvoRadio-Bridging-Header.h ) and set the Objective-C Bridging header path: /Users/ringo/Desktop/EvoRadio-master/EvoRadio/Resources/EvoRadio-Bridging-Header.h 并且我创建了一个桥接头文件( EvoRadio-Bridging-Header.h )并设置了Objective-C Bridging header路径: /Users/ringo/Desktop/EvoRadio-master/EvoRadio/Resources/EvoRadio-Bridging-Header.h

I have searched the issue on stackoverflow and found Importing Alamofire 3.4 - No such module 'Alamofire' ,but it didn't help me. 我搜索了关于stackoverflow的问题,发现Importing Alamofire 3.4-没有这样的模块'Alamofire' ,但是它没有帮助我。

I'm wondering why it happened and how to solve it ? 我想知道为什么会发生以及如何解决?

You can try with " pod 'Alamofire', '~> 4.5 " and install the cocoa pods again. 您可以尝试使用“ pod'Alamofire','〜> 4.5 ”并重新安装可可豆荚。 I think it will be working fine. 我认为它将运行良好。

Due to conflicts the versions of cocoa pods, some time these types of issues are occurs. 由于可可豆荚的版本冲突,有时会出现此类问题。

I have such problem, and i solve this by cleaning and rebuilding my project. 我有这样的问题,我可以通过清理和重建项目来解决。

Just click on up xcode menu Product -> Clean , Product -> Build after 只需单击xcode菜单上的产品->清洁,产品->构建后

If this doesn't help try press Alt and then Product -> Clean Build Folder 如果这样做没有帮助,请尝试按Alt,然后按产品->清理生成文件夹

Product -> Build after 产品->建立后

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM