Delphi XE4 For IOS之部署问题

在XE4中编写完程序后,怎么把相应的文件部署到ios虚拟机和真实机子中呢?下面就来说说。

首先选择你要部署的项目,选择Project-》Deployment菜单

image

Deployment菜单打开如下

捕获

通过image按钮把程序所需要的数据文件加载进来,在Remote Path中设置的值为StartUp\Documents。

因为代码中取出该文件的路径的代码是

begin
{$IFDEF IOS}
  UniConnection1.database:= GetHomePath + PathDelim +
    'Documents' + PathDelim +'ShoppingList.db';
{$ENDIF}
end;

所用使用这个StartUp\Documents数值。添加其他的路径也是类似的。

管方有个比较详尽的教程http://docwiki.embarcadero.com/RADStudio/XE4/en/IOS_Tutorial:_Using_InterBase_ToGo_in_an_iOS_Application

大家可以看这个。

转载于:https://my.oschina.net/cookblack/blog/621404

猜你喜欢

转载自blog.csdn.net/weixin_34130269/article/details/92046049