ios - 没有这样的模块 'Alamofire' ,但我已经 pod 它了

标签 ios swift module cocoapods bridging-header

No Such module 'Alamofire'

如上图,当我点击EvoRadio.xcworkspace并运行应用程序时,它警告我No Such module 'Alamofire'No Such module'ObjectMapper'……,但我已经用CocoaPods pod它们了。

Pod 步骤:

(1) pod 初始化

(2)编辑podfile如下: Podfile

(3) pod 安装

我已经创建了一个桥接头文件 (EvoRadio-Bridging-Header.h) 并设置了 Objective-C 桥接头 路径:/Users/ringo/Desktop/EvoRadio-master/EvoRadio/Resources/EvoRadio-Bridging-Header.h

我在stackoverflow上搜索了这个问题,发现Importing Alamofire 3.4 - No such module 'Alamofire' ,但这对我没有帮助。

我想知道为什么会发生以及如何解决?

最佳答案

您可以尝试使用“pod 'Alamofire', '~> 4.5”并再次安装 cocoa pod 。我认为它会工作得很好。

由于 cocoa pod 的版本冲突,有时会出现此类问题。

关于ios - 没有这样的模块 'Alamofire' ,但我已经 pod 它了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45852159/

相关文章:

typescript - 如何在 TypeScript 3.0 中使用项目引用?

ios - 在 Mac 中启动并运行 appium

ios - 我删除了包含 UIView Controller 类 * 的类文件。和 *.h 文件

ios - 如何在 Swift 中运行多个动画?

swift - 通过类注入(inject)引用 Observable

android - 如何在 GitHub 上将模块共享为库

python - 如何在django中使用yolov5模型

ios - 后退按钮 iOS 7 phonegap history.back()

ios - Swift 3,将变量发送到第三个屏幕

ios - "Template Rendering is not supported in texture atlases"SpriteKit 和 Xcode