简体   繁体   中英

Getting files off of iOS device for an app in testing

I save files to the Documents directory and wanted to look at the files themselves on the actual device. I know how to do this in the simulator by going to the iPhone Simulator directory->App->Documents->files. But is there a way to do this on the device? I can't seem to figure it out. In iTunes, I don't see my app since it's an app in testing. And if I plug it into a Windows machine, I only see pictures and movies stored on the device, not anything specific to my app which makes sense. Just didn't know if there was a way to get files off of the device. Thanks!

In XCode 6.1.1 (probably since 6, but 6.1.1 is what I have now), if you want files saved to the device's documents directory, you do...

  • Select Window -> Devices
  • Select your device
  • In the Installed Apps section, select your app.
  • Use the gear-icon to Download Container (that's the app's container)
    • Save it to your Desktop or someplace you can find it.
  • The app container will open in Finder.

From there, you can look in the Documents directory, Library, tmp, etc., which are all in the higher-level folder, AppData .

您可以通过Xcode的管理器窗口或通过在Info.plist文件中启用iTunes File Sharing并转到iTunes中设备上的“应用程序”选项卡来完成此操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM