NSPersistentContainer仅在10.0或更新版本中可用:错误 [英] NSPersistentContainer is only available in 10.0 or newer : error

查看:107
本文介绍了NSPersistentContainer仅在10.0或更新版本中可用:错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是因为我的部署目标小于10。

It's because My deployment target is less than 10.

如何解决部署目标降至10.0?

how to resolve for deployment target lower to 10.0 ?

推荐答案

其中一种解决方案是使用 https://github.com/inspace-io/INSPersistentContainer

One of solutions is to use https://github.com/inspace-io/INSPersistentContainer

并添加

typealias NSPersistentContainer         = INSPersistentContainer
typealias NSPersistentStoreDescription  = INSPersistentStoreDescription

到您要使用的文件

这篇关于NSPersistentContainer仅在10.0或更新版本中可用:错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆