简体   繁体   中英

iOS Access Core Data Auto Generated Classes inside Today Extension

I generated a Core Data model with a table called ReadHistory. I selected to have this table codeine using Category/Extension as I needed to extend a transient property. I want to use this class inside of a today extension but when I try to build I get the error that this file could not be found.

#import "ReadHistory+CoreDataProperties.h"

I do not see that file to be added via compile sources.

How can I get the autogenerated classes to show in the today extension?

You need to check the file named ReadHistory+CoreDataProperties.m as a target to the extension also

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM