[英]Deploying File On iOS Device delphi xe
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: 我尝试从delphi xe5移动应用程序在iOS上部署文件,我将部署中的远程路径设置为“startUp \\ Documents”,在模拟器上可以,但在设备上有以下文件结构:
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. 从上面可以看到,MyDBFile部署在错误的文件夹中,当我将文件复制到第一个Documents文件夹时,一切正常,我试过.\\Startup\\Documents
和.\\Documents
and \\Documents
但没有改变。 Any idea? 任何想法?
Try to set "StartUp\\Documents\\" (case is important!) 尝试设置“StartUp \\ Documents \\”(案例很重要!)
And after get this file: 得到这个文件后:
TPath.Combine(TPath.GetDocumentsPath, 'filename')
More information read on Embarcadero Doc Wiki: Loading and Deploying Files 更多信息请阅读Embarcadero Doc Wiki: 加载和部署文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.