Search code examples
iosswiftipadios-simulator

Swift Simulator folder location


I have found half a dozen answers about where the iPhone Simulator folder is. This does not display my iPad Applications though.

Does anyone know where the iPad Simulator folder location is or a way to get the location?


Solution

  • Direct to the directory containing all simulators:

    1. Right Click on the "Finder" icon in your dock

    2. Click on Go to Folder

      ~/Library/Developer/CoreSimulator/Devices/

    Swift

    Use this print statement:

    print(NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last)
    

    Objective-C

    You can find the exact location by using NSLog Print statement

    NSLog(@"%@",[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
    

    Then follow the first set of instructions with your location.