ios - 带有 Alamofire 和 ObjectMapper 的 Swift 4.0 没有这样的模块 'ObjectMapper'

标签 ios swift objectmapper

您好,我是 IOS 开发的新手。我正在创建一个小应用程序。我正在尝试导入 ObjectMapper 但它没有找到任何模块。我已经安装了 pod。我的 pod 文件看起来像:

  target 'Sample' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for Sample
pod 'Alamofire', '~> 4.5.0'
pod 'AlamofireObjectMapper', '~> 5.0'
pod 'AlamofireImage', '~> 3.3'
pod 'PKHUD', '~> 5.0'
pod 'ObjectMapper', '~> 3.0.0'

结束

我使用的是 swift 版本 4.0.2,Xcode 版本是 9.1。有什么东西不见了吗?需要一些帮助。

最佳答案

最新版本的 ObjectMapper 是 pod 'ObjectMapper', '~> 3.1' 并且一件事是清理并构建您的项目并确保您正在处理 YourProjectName.xcworkspace

关于ios - 带有 Alamofire 和 ObjectMapper 的 Swift 4.0 没有这样的模块 'ObjectMapper',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50527456/

相关文章:

ios - 如何从 iOS 中的弹出窗口 View 中删除模糊效果?

objective-c - 如何获得旋转的 CCNode 的角坐标?

swift - 在最新的 Swift (Xcode 6.3) 中重绘 NSView

swift - 带有 ObjectMapper 的 Realm

ios - 对象映射器不访问嵌套数组

iOS ShareKit 取消按钮不适用于 Xcode 4.2

ios - 使用 NotificationCenter 通知 Collection View Cell 更改其 subview - swift

java - jackson 混音 : How to Ignore or Rename fields from class as tree

快速迁移 : Argument labels '(_:)' do not match any available overloads

swift - Swift 中的动态调度和协议(protocol)