简体   繁体   English

XCode:在应用程序最稳定之后运行脚本以从设备复制文件

[英]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文件共享来获取文件。

Here's a tutorial 这是一个教程

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.

相关问题 获取XCODE以将运行脚本转换后的文件复制到iOS资源包中? - Get XCODE to Copy run script converted files to iOS resources bundle? 是否可以使用Snow Leopard从XCode 4.2将应用程序运行到IOS 6设备? - Is it possible to run application to IOS 6 device from XCode 4.2 with Snow Leopard? 无法从此设备XCode 4.6.3复制符号 - Unable to copy symbols from this device XCode 4.6.3 应用程序崩溃后,xCode设备日志不会填充 - xCode device logs not populating after application crash 仪器无法从Xcode 4.4在真实iOS设备中运行GUI测试脚本 - Instrument fail to run GUI test script in real iOS device from Xcode 4.4 Xcode运行脚本删除文件夹中的所有文件 - Xcode run script to delete all files in a folder Xcode命令行上传/下载iOS设备应用程序沙箱中的文件 - Xcode command line upload/download files to/from an iOS Device Application Sandbox 如何将图像从设备复制到应用程序的沙箱中? - How to copy image from device into sandbox of application? 尝试从 Xcode 在 iPhone 4S 上运行我的应用程序时出现“此应用程序不支持此设备的 CPU 类型” - Got "This application does not support this device's CPU type" trying to run my application on iPhone 4S from Xcode XCode将不再在设备/模拟器上运行我的应用程序 - XCode won't run my application on a device/simulator anymore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM