Browse the files created on a device by the iOS application I'm developing, on workstation?

XcodeIos

Xcode Problem Overview


I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver.

During Android development it's possible to browse a device filesystem when it's connected to your workstation via USB, for instance to help with troubleshooting your app.

However for IOS I don't see anything similar under the Organizer in Xcode, to help me browse files my app creates from the workstation. Googling "iOO browse device files", "iPhone view files" etc. reveals solutions for jailbroken devices but not for regular devices provisioned for development.

How can I browse files on a device created by an iOS app I'm developing?

Xcode Solutions


Solution 1 - Xcode

In Xcode's Organiser, go to your device's Summary tab. Find your application in the list, and click the disclosure triangle. Under it, you should see an icon saying "Application Data". Click the down pointing arrow to download the data, and it'll prompt you for somewhere to save it.

In Xcode 5, listed under your device in Organizer, click on "Applications" and you can see "Data files in Sandbox" in the bottom half of the window.

In Xcode 6, go to Window -> Devices, select the device, select the app name under Installed Apps, click the settings gearbox, then select Download container.... In finder, double finger tap the package and select Show package contents. enter image description here

Solution 2 - Xcode

In Xcode 6, open the Devices window:

Step 1

Then, select the app (in Installed Apps) and then click the gear icon and select Download Container.

Step 2

Solution 3 - Xcode

Pls note, that you can view contents of downloaded .xcappdata container by right click on it and select "Show Package Contents"

Solution 4 - Xcode

iExplorer works like a charm! Just used it to export some app files! http://www.macroplant.com/iexplorer/download-ie3-mac.php

Solution 5 - Xcode

In Xcode9: / Window / Devices and Simulators

Select the desired installed app, click the gear at the bottom and Download container...

In Finder, "right-click" the downloaded file and Show Package Contents to open it in a new Finder window.

I hope it's useful. Peace.

Solution 6 - Xcode

XCode version : 10.2.1

goto window -> Devices and Simulators

enter image description here

and after that choose your device from the left list, choose the app from the installed app, so you can press show container for show app's contains on the new page on xcode, press download container to download it to your OSX, also you can replace an old container to the moment state with Replace container...

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJim BlacklerView Question on Stackoverflow
Solution 1 - XcodeAmy WorrallView Answer on Stackoverflow
Solution 2 - XcodeIlyaView Answer on Stackoverflow
Solution 3 - XcodeDrenView Answer on Stackoverflow
Solution 4 - XcodeSamir SeetalView Answer on Stackoverflow
Solution 5 - XcodeMarlon DiasView Answer on Stackoverflow
Solution 6 - XcodemohsenView Answer on Stackoverflow