gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 10:40:48 26 4
gpt4 key购买 nike

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com