【发布时间】:2015-12-17 13:47:55
【问题描述】:
我需要将 JSON 反序列化为对象,我认为使用 ObjectMapper 会很棒。
很遗憾,无法导入对象映射器。我收到消息:
No such module 'ObjectMapper'
这是我的 podfile
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'OTTSwift' do
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 3.0'
use_frameworks!
pod "EVReflection", '~> 2.6'
use_frameworks!
pod 'ObjectMapper', '~> 1.0'
end
我什至尝试了 Git 导入,但它不起作用
【问题讨论】:
标签: ios json swift alamofire json-deserialization