0

getting error like deny Write-File-Data While Adding the data into Sqlite. I am running my application on simulator the sqlite is working fine .but when I am running it on device it is throughing an error.

1 Answers1

1

Make sure you are writing to a file path that is within the device sandbox area. The simulator doesn't have this restriction. See these SO answers:

  1. why can I write on simulator and not on the device
  2. how can I get a writable path
Community
  • 1
  • 1
progrmr
  • 75,956
  • 16
  • 112
  • 147