Is there any way currently to browse an App Folder / App Sandbox on an iOS device with iOS 9 - ios

As a developer doing many operations with files in my own apps' sandboxes (An app's subfolder environment such as Documents folder etc.) on the device, I found it extremely useful to be able to browse my app folder to see if my code was writing things to the correct places etc. I always used to use iExplorer for this & it was vital. To my horror, I came to do the same browsing today, only to find that you can no longer look inside the app's folders with tools like iExplorer. Some research tells me that as of iOS 8.3, Apple have placed restrictions which stop these tools from doing the great job they did.
Is there a work-around now at the iOS9 stage or even any tools that still manage to do it? This was so essential as a dev.

I'm assuming you mean a physical device, not the Simulator. In that case, you could open the Devices window (Xcode > Window > Devices) and then select the relevant device on the left.
In the Installed Apps section, select your app, and then click the gear icon which will give you a menu to Show, Download or Replace Container...

Now, it's available FileBrowser to browse the content of an app folder (in its sandbox).

Related

How do I access ipa files from an iPad?

I want to inspect one of the applications that I have downloaded from the iPad app store on my iPad 15.
I assume that it comes with an ipa file.
To locate the app folder or any ipa file, I open the "Files" app and enter "ipa".
Nothing is found.
Are these files hidden from the user?
How do I access / find them?
Thank you!
ps: The app is only available on the iPad app store, not for Mac.
ps2: I know that this board does not fit 100%.
However, I don't see which other board might fit.
ps3:
When I search for "How do I access files on an iPad", I find hundreds of entries explaining how to find documents that the user has created on an iPad, but not where the apps themselves are stored.
AppStore hides this information due to security reasons, so you would not be able to access or locate the ipa file so one would be prevented performing reverse engineering or any other ways to violate the security and data that app provides.

iOS File Retrieval - NSDocumentDirectory

I am working on a library with a very verbose logger module that, on iOS, writes xml logs to NSDocumentDirectory in a consistent file tree. I want to come up with a way for the user of this library to easily access these logs.
I know it is simple to programatically retrieve files from this directory, but is it possible to access this directory on an iOS physical device in any way from outside Xcode to retrieve these logs? I feel like I have seen it somewhere before, something in the manner of extracting the .ipa file and going into the package contents, but I could be wrong.
---------------------------------------------------------EDIT------------------------------------------------------------------
This (Browse the files created on a device by the IOS application I'm developing, on workstation?) is how to do it with Xcode on a device, but I have to assume that there is some way we can create that gets the logs off of a device for a user.
is it possible to access this directory on an iOS physical device in any way from outside Xcode to retrieve these logs?
It is possible to expose the Documents directory by enabling iTunes file sharing. When file sharing is enabled through this method, the contents of Documents directory would be visible to the user in iTunes, which can also be exported. The documents would also be visible for export through some third party desktop apps like iExplorer.
Here is the link to Apple documentation. You may also refer this thread to understand how this is done.
If you're using a simulator (apparently your task doesn't seem to need te real device) you are in luck.
You should go to a folder similar to this one:
/Users/[YOUR_USER_NAME]/Library/Developer/CoreSimulator/Devices/[RANDOM_HASH_YOU_SHOULD_DISCOVER]/data/Containers/Data/Application/[RANDOM_HASH_2_YOU_SHOULD_ALSO_DISCOVER]
Once there, with finder, you'll get the "documents" folder of the simulator and the app you're trying to retrieve your logs from.
You might say: I don't know which 2 RANDOM_HASHES should I go to.
Yes, you're right. If you have MANY simulators installed and or being used, it might be tricky to discover which one is the one you're trying to debug.
The same thing with your APP, your app will live in another RANDOM_HASH folder, and you should browse them, one by one, and then discover your documents folder.
Someone needed to solve this "mess" and created a Xcode Alcatraz Extension that leads you to the exact live simulator and APP you're debugging in any given moment, and then you don't need to guess which 2 random_hash paths you need to navigate to.
If Xcode + Alcartaz plugin extension manager is somewhat out of your reach, you might need to google it. It's not a difficult process.
PS: That magical Alcatraz Extension is named "XCodeWay" (in case you are brave enough to install Alcatraz onto your copy of XCode).
EDIT: Useful link to get Alcatraz: http://alcatraz.io/ Follow its easy instructions and you're done.
EDIT2: If Xcode cannot be used, then the last question in this other thread might come in handy: Browse the files created on a device by the IOS application I'm developing, on workstation?
(Still, an external application in your users machine will be needed )

Yosemite, iOS 8 and iCloud drive: syncing mobile to desktop?

I have a couple of iOS 8 apps that make use of the new iCloud Drive service and the native API for copying files to the app's personal iCloud file directory. Using two separate devices, I can upload files on one device, and download it on the other: so far so good. Now, having upgraded my macs to OS X.10 Yosemite, I have the iCloud Drive folder, but it only shows the files from the one applicable Apple product that I ever use (Keynote):
The files that are happily syncing between mobile devices are nowhere to be seen; I'm pretty sure that the documentation implies that they're supposed to be there, and that the distinction between mobile & desktop folders has been taken away. If I hunt around in ~/Library/Mobile\ Devices, I can find them, so they are updating behind the scenes. Or perhaps that update happened when the computer was still running OS X.9 Mavericks.
Anybody know what I'm missing?
On Yosemite it seems Finder is treating iCloud as a special folder, so it doesn't show the hidden files and folders. If you use Terminal to examine ~/Library/Mobile Documents/ it all seems to be there.
Trying to put the full pathname into Finder just dumps you back at the 'official' iCloud view, so it looks like Terminal is required in order to browse these on OS X.
What fixed it for me was going to System Preferences, iCloud, unchecking iCloud Drive, restarting the computer, and then repeating but this time checking iCloud Drive.
I discovered an easy way to view the original Mobile Documents folder without the view switching to the new iCloud Drive view.
Access your hidden Library folder within your User folder. (for example, click the Go menu in Finder while holding down the Option key)
Then select the Mobile Documents folder and create an alias to it (by right clicking)
Now, double-click to open the alias. Presto. This opens the actual Mobile Documents folder.
You will notice that some of the folders names have changed. You will note the iCloud Drive folder is also present.
It may be helpful to use the terminal or another utility to unhide the hidden files in Finder.

Check files in Documents, Library or tmp directory on iOS device

I am making on an app and want to get access to the directories that system create automatically when app installed on device. Of course when I use simulator I can find these directories without any problems, but how to open them on device. Maybe via iTunes or maybe Xcode has access to these directories.
The folders are below:
Why I need it:
Because after my app restore some products (iOS simulator does not support StoreKit) I have few records in the tmp folder in SQLite database.
#neilco , it's not necessary to use 3d party tools for this. In Xcode, go to organizer, select the connected device, "applications" tab, select desired application and hit "export" button below. This will export you app to your mac, so you can see your depicted folder structure, files' contents etc.
Take a look at using iExplorer as this allows you to views the folder structure of apps on a device.

Modifying iOS IPA asset and resigning (preferably from Windows)

I'm working on an iOS game. I have access to mac, xcode, etc. The issue is that my artists and designers do not. I would like to give them an ipa and have them able to unzip, modify assets, and then rebuild and test the ipa without have to use a mac or xcode. The ipa doesn't need to be installable on any iOS device other than their test device. Is this possible?
I read a little bit about codesign that comes with xcode, but that appears to only run on a mac - are there alternatives? It looks like Marmalade (and maybe UDK) provides this functionality (resigning on a pc) to their users, but I don't want to use those engines.
Ultimately I am simply looking for a way for an artist or designer to test out their changes without requiring them to rebuild the ipa from xcode or a mac - any ideas? Is there a system for allowing artists or designers to add files to an iDevice that an app can access to self patch it's assets?
The best solution I could come up with was to use Dropbox's iOS API as a patch interface to download files into the document folder. Then whenever I go to load a file from my installed folders, I first check to see if the new asset exists within the patch folder and if so I use that file instead. A fairly basic concept that appears to be working surprisingly well for iOS devices.

Resources