iPhone Simulator location

前端 未结 17 1994
时光取名叫无心
时光取名叫无心 2020-12-12 10:32

Where on my machine is the iPhone simulator installed?

I\'m been trying to find where a test application I run in the simulator is stored.

相关标签:
17条回答
  • 2020-12-12 11:09

    In Xcode 6, iOS Simulator.app is located in this location:

    /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app
    
    0 讨论(0)
  • 2020-12-12 11:12

    Xcode 6 -> /Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/

    Or print it out in Xcode console

    #if TARGET_IPHONE_SIMULATOR
        NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
    #endif
    
    0 讨论(0)
  • 2020-12-12 11:12

    The actual Simulator application itself is located at /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator

    0 讨论(0)
  • 2020-12-12 11:13

    In X-Code 4.2
    The Photos of the iPhone simulator are stored in

    /Users/user_name/Library/Application Support/iPhone Simulator/5.0/Media/DCIM/100APPLE
    
    0 讨论(0)
  • 2020-12-12 11:13

    For xcode 7, you'll find it at here

    /Users/{USERNAME}/Library/Developer/CoreSimulator/Devices/{CRIPTIC NUMBER}/data/Containers/Data/Application/{CRIPTIC NUMBER}/Documents/

    or execute the code below in your xcode project

    Objective C

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

    Swift

    print(applicationDocumentsDirectory.path)

    0 讨论(0)
提交回复
热议问题