I\'m trying to access the documents directory at iphone device to see a log file that I saved while executing the app.
I know this can be done for simulator. (you
With MacOS Catalina, Apple has made it very easy for reading the files written from the Documents directory.
Here are the steps:
You can drag and drop these files to any location in the Mac for further use
Hi Viraj's anwer is the way to go .Here is a screenshot:
You can open Organizer in Xcode and download the documents directory when your device is connected right ?
iOS provides a framework to share documents between your application & iTunes. Check out the Core Services Layer section of the Apple docs, specifically the File-Sharing Support section. It explains how to do this:
On a side note, if this is just for debugging, you can always print logs using the default NSLog function and check the output using OS X's Console.
In Xcode 6 you should open Devices window to download it.
You also can use itunes for the same, but to view in itunes make change as below in your .plist Add new key as "Application supports iTunes file sharing" and make it as boolen with value YES