Permission denied creating SQLite File under iOS

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
itsds
Posts: 37
Joined: Mon 30 Apr 2007 10:38
Location: Germany - Bochum
Contact:

Permission denied creating SQLite File under iOS

Post by itsds » Fri 01 Jul 2016 17:37

Hi actually i can not use static linked SQLite Files because i get Permission Denied Error creating Database file in any Folder (e.g. System.IOUtils.TPath.GetDocumentsPath / System.IOUtils.TPath.GetLibraryPath)

I verified the Folder exists and
ForceCreateDatabase is set to true.
Direct is set to true

Am i Doing something wrong or is there a Bug ?

Setting NOSTATIC works as Expected !
Do i Have to set something special under iOS the Static works also as expected unter Android / Windows !
Only iOS - Static has Permission Problems.

The iOS Folder used is :
'/var/mobile/Containers/Data/Application/A7F814A5-2A95-4521-99BD-A0213425D974/Documents'

Here is the exception:
Erste Gelegenheit für Exception bei $0000000100B4E7BC. Exception-Klasse EFCreateError mit Meldung 'Datei "/var/mobile/Containers/Data/Application/A7F814A5-2A95-4521-99BD-A0213425D974/Documents/myapp.db" kann nicht erstellt werden. Permission denied'. Prozess tasysmobile (805)

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Permission denied creating SQLite File under iOS

Post by AlexP » Mon 11 Jul 2016 11:27

Hello,

Please specify the exact version of UniDAC.

Post Reply