json - 错误 : Expected declaration, 使用未声明的类型 'Object',使用未声明的类型 'JSON'

标签 json swift objectmapper

开始在我的 iOS 应用程序中集成 ObjectMapper 以将对象映射到实体。但是出现错误

Errors: Expected declaration, Use of undeclared type 'Object', Use of undeclared type 'JSON'

enter image description here

最佳答案

如果您是 ObjectMapper 1.2.0 及更高版本,则需要 Xcode 7.3

关于json - 错误 : Expected declaration, 使用未声明的类型 'Object',使用未声明的类型 'JSON',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36279209/

相关文章:

json - 整理大型非结构化 REST/JSON 响应

ios - 如果在系统设置中关闭隐藏式字幕,则不会显示字幕

swift - 旋转时 CALayers 转换不正确

java - 反序列化包含 List<Object> 的 Jackson/Json 对象,其中列表类型是对象中的属性

json - 在 golang 中,json.Unmarshal() 在 Playground /复制粘贴的 JSON 中有效,但在实际代码中无效

python - 使用 pd.read_json 读取 JSON 文件时出现 ValueError 错误

python - 如何将json文件转换为列表

快速访问字典中的键返回 null

json - ObjectMapper 在 Swift 中返回 NIL

swift - ObjectMapper:使用 Swift 4.2 编译的模块无法在 Swift 4.1.2 中导入: