1

I am converting a Delphi windows app to be multi platform, a crucial part of the application is to be able to export some data files from an SQLite database to the host machine.
It works absolutely fine on windows and OSX, but when I deploy it to an iPad I get an error message stating :

Cannot create file "/var/mobile/Containers/Bundle/Application/9FFD6B02-1B3A-4F07-XXXXXXXXXXXXXXXXXX/AAG_Multi.app/Text/Templates/full Transcript.dwt   
Operation not permitted

I tried TMemorystream as well, same result. The directory should exist as I called Tdirectory.Creatdirectory(fullPath) immediately prior to the TStreamCreate Line.

CapNemo101
  • 75
  • 1
  • 6

1 Answers1

4

You are not allowed to write to the application bundle.

You need to write to a directory that is writeable. For instance, TPath.GetHomePath would return a directory to which you could write. Exactly what directory you should use, probably only you can decide.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • Thanks David, worked a treat. Unfortunately it has led to a second issue regarding entering iOS paths in the Deployment Manager in XE7 – CapNemo101 Oct 23 '14 at 12:56