Er. Maheshwari
Er. Maheshwari

Reputation: 93

How to resolve the error deny write-File-Data?

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.

Upvotes: 0

Views: 243

Answers (1)

progrmr
progrmr

Reputation: 77281

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

Upvotes: 1

Related Questions