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

后端 未结 3 1898
半阙折子戏
半阙折子戏 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

    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.

提交回复
热议问题