Question

I try to deploy file on iOS from delphi xe5 mobile app, I set remote path in deployment to "startUp\Documents", it is OK on the simulator but on the device there is the following file structure:

MyApp.app
+Documents
+MyApp.app
++Startup
+++Documents
++++MyDBFile

As you can see from above MyDBFile is deployed in the wrong folder, when I copy the file to the first Documents folder everything is OK, I tried .\Startup\Documents and .\Documents and \Documents but nothing changed. Any idea?

Était-ce utile?

La solution

Try to set "StartUp\Documents\" (case is important!)

And after get this file:

TPath.Combine(TPath.GetDocumentsPath, 'filename')

More information read on Embarcadero Doc Wiki: Loading and Deploying Files

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top