[英]XCode: Run script after application unitest to copy files from device
I run an application test from XCode on my device. 我从设备上的XCode运行应用程序测试。 The test creates some files on the device.
该测试会在设备上创建一些文件。 After the tests has finihsed i would like to copy these file from the device to my machine.
测试完成后,我想将这些文件从设备复制到我的机器上。
Does anyone know how to achieve that? 有谁知道如何做到这一点? I am using XCode 4.6.2
我正在使用XCode 4.6.2
thanks Christian 谢谢克里斯蒂安
Assuming the files are created in the Documents directory, you can use iTunes file sharing to get the files. 假设在Documents目录中创建了文件,则可以使用iTunes文件共享来获取文件。
EDIT based on comment 根据评论进行编辑
Not sure if this fits your use case - you could try integration with the Dropbox API . 不知道这是否适合您的用例-您可以尝试与Dropbox API集成。 Your app, once the files are created, can sync the files in a Dropbox folder.
创建文件后,您的应用可以将文件同步到Dropbox文件夹中。 You can have the Windows/Mac app installed to have the files synced to your computer as well.
您可以安装Windows / Mac应用程序,以将文件也同步到计算机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.