Open JoelSuyati opened 2 years ago
More information would help, which platform, database location, some code example...can you write a file at the database location?.
@alextekartik I get the following error when creating a new database:
"Cannot create file OS Error Read only file system" on an iOS 15 simulator on latest MacOS
@owenkealey Same response: More information would help, database location, some code example...can you write a file at the database location?.
Here is how to fix this-
ref = StoreRef<String, String>.main();
final applicationDirectory = await getApplicationDocumentsDirectory();
final databasePath = applicationDirectory.path + '/twitter.da';
final db = await databaseFactoryIo.openDatabase(databasePath);
You would need to install path_provider
plugin to use getApplicationDocuementsDirectory()
function.
Hero.
while storing data to sembast