iosxcodeios-simulatornsfilemanager

Document folder iOS Simulator


How is possible to find quickly the document folder (in the mac) of an App when I'm using the simulator? When I need to explore the document folder during the simulation of the App now I use a variable of the App to find the document folder path and I read the path during the debug (using a variable) but I think is not the best solution.


Solution

  • Set and hit a breakpoint in the app, and write the following in the Xcode Console (next to the Variables View):

    po NSHomeDirectory()
    

    Then in Finder hit Shift+CMD+G, paste the path returned above without the quotation marks and hit enter.