您好,我是 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/