funccheckDatabaseLocation() { iflet urlApp =FileManager.default.urls( for: .applicationSupportDirectory, in: .userDomainMask ).last { let url = urlApp.appendingPathComponent("default.store") ifFileManager.default.fileExists(atPath: url.path) { let path = url.path // 获取标准文件路径 print("SwiftData DB at \(path)") } else { print("SwiftData DB not found at \(url.path)") } } else { print("Failed to locate application support directory.") } }