核心数据是否自动创build一个SQLite数据库文件?

核心数据是否自动创build一个sqlite数据库? 如果是,为什么不可见?

- (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (__persistentStoreCoordinator != nil) { return __persistentStoreCoordinator; } NSURL *storeURL = [[self applicationDocumentsDirectory] URLByAppendingPathComponent:@"Database.sqlite"] 

是的,该文件是在应用程序的文档目录中创build的。 在使用模拟器进行开发的过程中,如果你想删除它,或者使用你的开发数据库在你的应用程序安装到设备上后看到它,你可以在模拟器文件夹中find它(现在移到Xcode 4.3的Xcode文件夹中的DerivedData)。