문제

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