質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top