.plist file是特殊的xml文件,在ios中,使用sandbox机制 to persist data, made data locally.
There are four different way(plist, userdefault, sqlite, xxxxx)
使用xcode。
1.获得.plist文件
Windows - devices - download container
这个步骤会把整个folder with container下载下来
格式如下:gareth.collectDefaultData 2017-05-10 11/03.58.xcappdata
right click the xcappdata and choose "show package content"
this xcappdata is in AppData - Library - Preferences
conver .plist file to .json file
in terminal, Enter the directory in the .plist
Enter :// plutil -convert json -o Data.json g1.plist
Data.json是你自己需要的json file的名称
g1.plist是目标文件
此时会得到一个只有一行的json 文件extract json file to normal txt file
I implemented a python file named "extractJSON.py"
plist处理起来非常麻烦,key是disorder的,如果按照我之前的插入数据,很难做统计
固有此方法