我正在使用核心数据为 OS X 编写应用程序。构建和运行它进行调试是没有问题的,但是当我切换到发布或尝试归档它时,它会抛出错误
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequestExpression.h:15:39: Attempting to use the forward class 'NSExpression' as superclass of 'NSFetchRequestExpression'
当我从代码中删除所有获取请求时,它工作正常。有谁知道这可能是什么问题?谢谢你。
这是标题:
#import <Cocoa/Cocoa.h>
#import <CoreData/CoreData.h>
#import "EFMainController.h"
@interface EF_AppDelegate : NSObject
{
IBOutlet NSMenu *statusMenu;
NSStatusItem *statusItem;
NSWindow *window;
NSPersistentStoreCoordinator *persistentStoreCoordinator;
NSManagedObjectModel *managedObjectModel;
NSManagedObjectContext *managedObjectContext;
EFMainController *mainController;
NSTabView *tabView;
IBOutlet NSImageView *dockTileView;
}
@property (nonatomic, retain) IBOutlet NSWindow *window;
@property (nonatomic, retain) IBOutlet EFMainController *mainController;
@property (assign) IBOutlet NSTabView *tabView;
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator;
- (NSManagedObjectModel *)managedObjectModel;
- (NSManagedObjectContext *)managedObjectContext;
- (IBAction)saveAction:sender;
@end
和
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface EFMainController : NSObject {
/* some variables */
}
/* some properties and actions */
@end
我发表评论的东西与核心数据无关