麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 開發設計 > 正文

xcode7種使用coredata遇到Classnotfound,usingdefaultNSManagedObjectinstead.問題

2019-11-14 18:00:34
字體:
來源:轉載
供稿:網友
CoreData: warning: Unable to load class named 'CoreDataSwift2_2.Bowtie' for entity 'Bowtie'.  Class not found, using default NSManagedObject instead.fatal error: NSArray element failed to match the Swift Array Element type

xcode 7 中遇到這種問題糾結了好久,最終解決了。

 

This warning is quite annoying. It appears spuriously. I have been able to get rid of it in most cases by making sure that the class is set correctly in the model editor. Unlike in many other SOF posts, the suggestion to include the module name (like MyApp.Shows) has not helped me.

1.
Version that works up to Xcode 7 beta 3

Up to XCode7 b3

Notice that I corrected your entity name to the more apPRopriate singular.

Version that works for Xcode 7 beta 4 and above

You need to delete the text "Current Product Module" in Module!

From Xcode7 beta 3

2.
You should also follow the frequent recommendation to include

@objc(Show)

just above your class.

Note: If you are using Xcode 7 beta 4 or later, this step is optional.

3.
Also make sure to cast the created managed object to the proper class, as the default would be just NSManagedObject.

var newShow = NSEntityDescr

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 精品国产91久久久久久 | 国产精品免费视频观看 | 激情视频免费看 | 视频一区 中文字幕 | 91网站在线观看视频 | 成人一级免费视频 | 免费男女乱淫真视频 | 亚洲无限资源 | 日韩色视频 | 美女久久久久久久久 | 精品一区二区久久久久久久网精 | 热99在线视频 | 福利在线小视频 | 操操日日 | 91午夜免费视频 | 男女亲热网站 | 天天干天天透 | 国人精品视频在线观看 | 黄色av电影在线 | 黑色丝袜美美女被躁视频 | 草久在线 | 久久久久久久久久网 | 亚洲国产资源 | 国产日韩免费观看 | 亚洲不卡 | 国产精品久久久久影院老司 | 亚洲伊人色欲综合网 | 人人舔人人插 | 日韩精品dvd | 午夜久久久精品一区二区三区 | 日韩精品网站在线观看 | 手机在线看片国产 | 国产免费黄网 | 香蕉视频1024 | omofun 动漫在线观看 | 成人免费观看av | 亚洲视频成人在线 | 91精品国产九九九久久久亚洲 | 久久久久国产一区二区三区不卡 | 精国产品一区二区三区 | 久久久国产精品免费观看 |