iPhone - Where is the [NSUserDefaults standardUserDefaults] file stored on the computer?

后端 未结 3 1866
半阙折子戏
半阙折子戏 2021-01-02 09:16

When running an app on the iPhone (for example when you can do it in another way testing some GPS or camera feature), where can I find and check the file created by NSUserDe

相关标签:
3条回答
  • 2021-01-02 10:01

    It's in your app directory under:

    Library -> Preferences -> bundleID.plist

    You can access the data on your device. Go into the organizer select your device then the app and there should be a download button there. If you click that it will download all the app data.

    0 讨论(0)
  • 2021-01-02 10:01

    The user defaults file for applications started in the simulator are located here:

    /Users/[USERNAME]/Library/Application Support/iPhone Simulator/4.3/Applications/[UNIQUE IDENTIFIER]/Library/Preferences/APP_ID.plist

    The USERNAME is the user you run as on your system.

    The UNIQUE IDENTIFIER is generated by Xcode.

    APP_ID is your com.yourcompany.app bundle id.

    0 讨论(0)
  • 2021-01-02 10:16

    You can see it in:

    /var/mobile/Containers/Data/Application/F27682C5-55AC-4984-9864-313DA609134F/Library/Preferences while App at: /var/mobile/Containers/Bundle/Application/AE02FFCA-4CAF-4B58-8F32-0D67A78BD259

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