Writing to files on Mac when running on iOS device attached to Xcode

debugging, device, ios, xcode

Solution

I recommend using NSLogger to stream your log data via Bonjour to the Mac. It has a Mac application that allows you view the data as it is coming in.

For more advanced logging you can also combine NSLogger with the CocoaLumberJack framework using this connector project.

Problem

When running an app on an iPhone/iPad via Xcode, is there anyway to open files for writing on the Mac? I have an app which requires the device to run, so using the simulator isn't an option. I do however need to analyze some of the app's output. Currently I have to write to files on the device, and then manually sync them to the Mac. I'm looking for a way to write my files to the Mac directly.

Original source

Related problems